WIP: Getting styles from lua

This commit is contained in:
ailurux
2024-03-07 12:12:32 +11:00
parent 490b067b76
commit a78614a580
12 changed files with 159 additions and 27 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ local power = require("power")
local bluetooth = require("bluetooth")
local font = require("font")
local backstack = require("backstack")
local theme = require("theme")
local styles = require("styles")
local database = require("database")
local widgets = {}
@@ -41,7 +41,7 @@ function widgets.Row(parent, left, right)
w = lvgl.PCT(100),
h = lvgl.SIZE_CONTENT,
}
container:add_style(theme.list_item)
container:add_style(styles.list_item)
container:Label { text = left, flex_grow = 1 }
container:Label { text = right }
end