diff options
| author | Tom Kirchner <git@halffull.org> | 2024-12-31 17:04:16 -0800 |
|---|---|---|
| committer | Tom <tjk@noreply.codeberg.org> | 2025-01-02 16:36:40 +0000 |
| commit | 0975c2cdbdaf252eb6765b32d4c880911abfcc9f (patch) | |
| tree | c360b7f22f45c4eca357cbebc6339b82d7ee751b /lua/playing.lua | |
| parent | 02954cd40bf36082a63b56eb5211bd27f5f0b4c4 (diff) | |
| download | tangara-fw-0975c2cdbdaf252eb6765b32d4c880911abfcc9f.tar.gz | |
Add track info screen
Diffstat (limited to 'lua/playing.lua')
| -rw-r--r-- | lua/playing.lua | 11 |
1 files changed, 10 insertions, 1 deletions
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 |
