Merge branch 'main' into themes

This commit is contained in:
ailurux
2024-03-20 13:42:03 +11:00
61 changed files with 3239 additions and 907 deletions
+12
View File
@@ -33,6 +33,18 @@ GLOBAL_BINDINGS = {
container:center()
end)
end),
-- When the device has been locked for a while, default to showing the now
-- playing screen after unlocking.
controls.lock_switch:bind(function(locked)
if locked then
lock_time = time.ticks()
elseif time.ticks() - lock_time > 8000 then
local queue = require("queue")
if queue.size:get() > 0 then
require("playing"):pushIfNotShown()
end
end
end),
}
local theme_dark = require("theme_dark")