summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/browser.lua4
-rw-r--r--lua/images.lua1
-rw-r--r--lua/img/partially_listened.pngbin0 -> 117 bytes
3 files changed, 4 insertions, 1 deletions
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
--- /dev/null
+++ b/lua/img/partially_listened.png
Binary files differ