Migrate 'now playing' screen to lua

This commit is contained in:
jacqueline
2023-11-24 15:13:10 +11:00
parent 230721cd62
commit 7c6eb2997c
43 changed files with 613 additions and 1840 deletions
+3 -2
View File
@@ -5,6 +5,7 @@ local database = require("database")
local backstack = require("backstack")
local font = require("font")
local queue = require("queue")
local playing = require("playing")
local browser = {}
@@ -73,6 +74,7 @@ function browser.create(opts)
play:onClicked(function()
queue.clear()
queue.add(original_iterator)
backstack.push(playing)
end
)
end
@@ -107,8 +109,7 @@ function browser.create(opts)
else
queue.clear()
queue.add(contents)
legacy_ui.open_now_playing()
-- backstack.push(playing)
backstack.push(playing)
end
end)
btn:onevent(lvgl.EVENT.FOCUSED, function()