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
@@ -1,7 +1,7 @@
local backstack = require("backstack")
local widgets = require("widgets")
local font = require("font")
local theme = require("theme")
local styles = require("styles")
local function show_license(text)
backstack.push(function()
@@ -100,7 +100,7 @@ return function()
w = lvgl.PCT(100),
h = lvgl.SIZE_CONTENT,
}
row:add_style(theme.list_item)
row:add_style(styles.list_item)
row:Label { text = name, flex_grow = 1 }
local button = row:Button {}
button:Label { text = license, text_font = font.fusion_10 }