From 0975c2cdbdaf252eb6765b32d4c880911abfcc9f Mon Sep 17 00:00:00 2001 From: Tom Kirchner Date: Tue, 31 Dec 2024 17:04:16 -0800 Subject: Add track info screen --- lua/playing.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lua/playing.lua') diff --git a/lua/playing.lua b/lua/playing.lua index 86ecf20c..84e31962 100644 --- a/lua/playing.lua +++ b/lua/playing.lua @@ -6,6 +6,7 @@ local playback = require("playback") local queue = require("queue") local screen = require("screen") local theme = require("theme") +local track_info = require("track_info") local img = require("images") @@ -176,7 +177,7 @@ return screen:new { }, w = lvgl.PCT(100), h = lvgl.SIZE_CONTENT, - pad_column = 8, + pad_column = 6, pad_all = 2, } @@ -230,6 +231,14 @@ return screen:new { theme.set_subject(shuffle_btn, icon_enabled_class) local shuffle_desc = widgets.Description(shuffle_btn) + local info_btn = controls:Button {} + info_btn:onClicked(function() + backstack.push(track_info:new()) + end) + local info_img = info_btn:Image { src = img.info } + theme.set_subject(info_btn, icon_enabled_class) + local info_desc = widgets.Description(info_btn, "Track info") + controls:Object({ flex_grow = 1, h = 1 }) -- spacer -- cgit v1.2.3