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
1 changed files with 2 additions and 2 deletions

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