From e0b057b3fa6ee1e8e8fd90d1abd6f201f73937ab Mon Sep 17 00:00:00 2001 From: ailurux Date: Tue, 27 Aug 2024 16:30:40 +1000 Subject: Various UI tweaks and improvements --- lua/playing.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/playing.lua') 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), -- cgit v1.2.3