WIP: Getting styles from lua
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user