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 = ' < '
},
resetButton = UI.Button {
x = 6, ex = -6,
x = 7, ex = -7,
event = 'reset',
backgroundColor = colors.lightGray,
text = 'Reset'

View File

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