From ba22b3dae99da47ef8234361013091ab42a554e6 Mon Sep 17 00:00:00 2001 From: Amanda Stjerna Date: Sat, 17 May 2025 13:15:53 +0200 Subject: Add an icon for partially played long-form content The icon is the pause icon in a circle. Closes: #376 --- lua/browser.lua | 4 +++- lua/images.lua | 1 + lua/img/partially_listened.png | Bin 0 -> 117 bytes 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 lua/img/partially_listened.png diff --git a/lua/browser.lua b/lua/browser.lua index 264db0c5..479cb620 100644 --- a/lua/browser.lua +++ b/lua/browser.lua @@ -110,7 +110,9 @@ return screen:new { if not track then return end if (track.play_count > 0) then return img.listened - else + elseif track.saved_position > 0 then + return img.partially_listened + else return img.unlistened end end diff --git a/lua/images.lua b/lua/images.lua index a492b9a2..c255e9e7 100644 --- a/lua/images.lua +++ b/lua/images.lua @@ -27,6 +27,7 @@ local img = { usb = lvgl.ImgData("//lua/img/usb.png"), listened = lvgl.ImgData("//lua/img/listened.png"), unlistened = lvgl.ImgData("//lua/img/unlistened.png"), + partially_listened = lvgl.ImgData("//lua/img/partially_listened.png"), info = lvgl.ImgData("//lua/img/info.png"), menu = lvgl.ImgData("//lua/img/menu.png"), unmount = lvgl.ImgData("//lua/img/unmount.png"), diff --git a/lua/img/partially_listened.png b/lua/img/partially_listened.png new file mode 100644 index 00000000..a4c2783a Binary files /dev/null and b/lua/img/partially_listened.png differ -- cgit v1.2.3