swap play and pause icons to indicate intended action instead of the status

This commit is contained in:
Artem Tarasov 2024-05-23 08:05:59 +02:00
parent a69682b240
commit 0391d98acb

View file

@ -279,11 +279,11 @@ local function worker(user_args)
end
if metadata.status == "Playing" then
icon.image = play_icon
icon.image = pause_icon
widget.colors = { beautiful.widget_main_color }
update_metadata(metadata)
elseif metadata.status == "Paused" then
icon.image = pause_icon
icon.image = play_icon
widget.colors = { beautiful.widget_main_color }
update_metadata(metadata)
elseif metadata.status == "Stopped" then