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
+3 -3
View File
@@ -4,7 +4,7 @@ local backstack = require("backstack")
local font = require("font")
local queue = require("queue")
local playing = require("playing")
local theme = require("theme")
local styles = require("styles")
local playback = require("playback")
local browser = {}
@@ -90,7 +90,7 @@ function browser.create(opts)
local back = screen.list:add_btn(nil, "< Back")
back:onClicked(backstack.pop)
back:add_style(theme.list_item)
back:add_style(styles.list_item)
screen.focused_item = 0
screen.last_item = 0
@@ -122,7 +122,7 @@ function browser.create(opts)
screen.add_item(opts.iterator())
end
end)
btn:add_style(theme.list_item)
btn:add_style(styles.list_item)
end
for _ = 1, 8 do