milo shop tweaks

This commit is contained in:
kepler155c@gmail.com
2019-01-13 18:27:44 -05:00
parent 905783ad7a
commit 1cc9829eed
2 changed files with 4 additions and 4 deletions

View File

@@ -101,7 +101,7 @@ local function createPage(node)
text = ' < ' text = ' < '
}, },
resetButton = UI.Button { resetButton = UI.Button {
x = 6, ex = -6, x = 7, ex = -7,
event = 'reset', event = 'reset',
backgroundColor = colors.lightGray, backgroundColor = colors.lightGray,
text = 'Reset' text = 'Reset'

View File

@@ -60,8 +60,8 @@ local function createPage(node)
unfocusedBackgroundSelectedColor = colors.gray, unfocusedBackgroundSelectedColor = colors.gray,
columns = { columns = {
{ heading = 'Stock', key = 'count', width = 6, justify = 'right' }, { heading = 'Stock', key = 'count', width = 6, justify = 'right' },
{ heading = ' Price', key = 'price', width = 9, justify = 'right' },
{ heading = 'Name', key = 'displayName' }, { heading = 'Name', key = 'displayName' },
{ heading = ' Price', key = 'price', width = 9, justify = 'right' },
{ heading = 'Address', key = 'address', width = 12 }, { heading = 'Address', key = 'address', width = 12 },
}, },
sortColumn = 'displayName', sortColumn = 'displayName',
@@ -120,8 +120,8 @@ local function createPage(node)
function page.grid:getDisplayValues(row) function page.grid:getDisplayValues(row)
row = Util.shallowCopy(row) row = Util.shallowCopy(row)
row.count = Util.toBytes(row.count) .. ' x' row.count = Util.toBytes(row.count) .. ' '
row.price = row.price .. ' kst ' row.price = string.format('%s kst ', row.price)
row.address = row.name row.address = row.name
return row return row
end end