rename justify property to align

This commit is contained in:
kepler155c@gmail.com
2019-02-27 17:15:44 -05:00
parent 5af2bb1e91
commit 177533b760
11 changed files with 78 additions and 55 deletions

View File

@@ -49,7 +49,7 @@ local page = UI.Page {
grid = UI.Grid {
y = 2, ey = -2,
columns = {
{ heading = ' Qty', key = 'count' , width = 4, justify = 'right' },
{ heading = ' Qty', key = 'count' , width = 4, align = 'right' },
{ heading = 'Name', key = 'displayName' },
},
values = { },

View File

@@ -40,7 +40,7 @@ local page = UI.Page {
grid = UI.Grid {
y = 2, ey = -2,
columns = {
{ heading = ' Qty', key = 'count' , width = 4, justify = 'right' },
{ heading = ' Qty', key = 'count' , width = 4, align = 'right' },
{ heading = 'Name', key = 'displayName' },
{ heading = 'Min', key = 'low' , width = 4 },
{ heading = 'Max', key = 'limit' , width = 4 },

View File

@@ -29,7 +29,7 @@ local networkPage = UI.Page {
y = 2, ey = -3,
values = context.storage.nodes,
columns = {
{ key = 'suffix', width = 4, justify = 'right' },
{ key = 'suffix', width = 4, align = 'right' },
{ heading = 'Name', key = 'displayName' },
{ heading = 'Type', key = 'mtype', width = 4 },
{ heading = 'Pri', key = 'priority', width = 3 },

View File

@@ -81,13 +81,14 @@ local function createPage(node)
local page = UI.Page {
parent = monitor,
backgroundColor = colors.black,
grid = UI.Grid {
ey = -2,
ey = -3,
columns = {
{ heading = 'Qty', key = 'count', width = 5 },
{ heading = 'Change', key = 'change', width = 5 },
{ heading = 'Rate', key = 'rate', width = 6 },
{ heading = 'Name', key = 'displayName' },
{ heading = 'Qty', key = 'count', width = 6, align = 'right' },
{ heading = '+/-', key = 'change', width = 6, align = 'right' },
{ heading = 'Name', key = 'displayName' },
{ heading = 'Rate', key = 'rate', width = 6, align = 'right' },
},
sortColumn = 'displayName',
headerBackgroundColor = colors.black,
@@ -100,19 +101,22 @@ local function createPage(node)
prevButton = UI.Button {
x = 1, width = 5,
event = 'previous',
backgroundColor = colors.lightGray,
textColor = colors.cyan,
backgroundColor = colors.black,
text = ' < '
},
resetButton = UI.Button {
x = 7, ex = -7,
event = 'reset',
backgroundColor = colors.lightGray,
textColor = colors.cyan,
backgroundColor = colors.black,
text = 'Reset'
},
nextButton = UI.Button {
x = -5, width = 5,
event = 'next',
backgroundColor = colors.lightGray,
textColor = colors.cyan,
backgroundColor = colors.black,
text = ' > '
},
},

View File

@@ -13,7 +13,7 @@ local page = UI.Page {
y = 2, ey = -4,
values = context.storage.nodes,
columns = {
{ key = 'suffix', width = 4, justify = 'right' },
{ key = 'suffix', width = 4, align = 'right' },
{ heading = 'Name', key = 'displayName' },
{ heading = 'Type', key = 'mtype', width = 4 },
{ heading = 'Pri', key = 'priority', width = 3 },