summaryrefslogtreecommitdiff
path: root/lua/playing.lua
diff options
context:
space:
mode:
authorailurux <ailuruxx@gmail.com>2024-08-27 16:30:40 +1000
committerailurux <ailuruxx@gmail.com>2024-08-27 16:30:40 +1000
commite0b057b3fa6ee1e8e8fd90d1abd6f201f73937ab (patch)
tree6cd2534099ba70e10ebf276e1c09d9aedca51f03 /lua/playing.lua
parenta09b3f24fef7e320a626a9cf10d72886a62c3ffe (diff)
downloadtangara-fw-e0b057b3fa6ee1e8e8fd90d1abd6f201f73937ab.tar.gz
Various UI tweaks and improvements
Diffstat (limited to 'lua/playing.lua')
-rw-r--r--lua/playing.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/playing.lua b/lua/playing.lua
index 97997366..942b8836 100644
--- a/lua/playing.lua
+++ b/lua/playing.lua
@@ -247,16 +247,20 @@ return screen:new {
queue.random:bind(function(shuffling)
theme.set_style(shuffle_btn, shuffling and icon_enabled_class or icon_disabled_class)
if shuffling then
+ shuffle_img:set_src(img.shuffle)
shuffle_desc:set { text = "Disable shuffle" }
else
+ shuffle_img:set_src(img.shuffle_off)
shuffle_desc:set { text = "Enable shuffle" }
end
end),
queue.repeat_track:bind(function(en)
theme.set_style(repeat_btn, en and icon_enabled_class or icon_disabled_class)
if en then
+ repeat_img:set_src(img.repeat_src)
repeat_desc:set { text = "Disable track repeat" }
else
+ repeat_img:set_src(img.repeat_off)
repeat_desc:set { text = "Enable track repeat" }
end
end),