summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Kirchner <git@halffull.org>2024-12-29 18:35:08 -0800
committerTom Kirchner <git@halffull.org>2024-12-29 18:35:08 -0800
commite09ab5f6fbcc6395d5f0fbe7e5407483358919c3 (patch)
treeb8b24cc4c551c2969cca9b19c4c217bbdd56ca94
parentf2198867538bec387bd54db8dc0ddca8b4a20e60 (diff)
downloadtangara-fw-e09ab5f6fbcc6395d5f0fbe7e5407483358919c3.tar.gz
Show album name on now-playing screen
-rw-r--r--lua/playing.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/lua/playing.lua b/lua/playing.lua
index 35e9c8eb..6ed18844 100644
--- a/lua/playing.lua
+++ b/lua/playing.lua
@@ -67,6 +67,14 @@ return screen:new {
text_align = 2,
}
+ local album = info:Label {
+ w = lvgl.PCT(100),
+ h = lvgl.SIZE_CONTENT,
+ text = "",
+ text_font = font.fusion_10,
+ text_align = 2,
+ }
+
local title = info:Label {
w = lvgl.PCT(100),
h = lvgl.SIZE_CONTENT,
@@ -263,6 +271,7 @@ return screen:new {
end_time:set { text = format_time(playback.position:get()) }
end
title:set { text = track.title }
+ album:set { text = string.sub(track.album, 1, 58) }
artist:set { text = track.artist }
end),
queue.position:bind(function(pos)