summaryrefslogtreecommitdiff
path: root/lua/playing.lua
diff options
context:
space:
mode:
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),