swap play and pause icons to indicate intended action instead of the status
This commit is contained in:
parent
a69682b240
commit
0391d98acb
|
@ -279,11 +279,11 @@ local function worker(user_args)
|
||||||
end
|
end
|
||||||
|
|
||||||
if metadata.status == "Playing" then
|
if metadata.status == "Playing" then
|
||||||
icon.image = play_icon
|
icon.image = pause_icon
|
||||||
widget.colors = { beautiful.widget_main_color }
|
widget.colors = { beautiful.widget_main_color }
|
||||||
update_metadata(metadata)
|
update_metadata(metadata)
|
||||||
elseif metadata.status == "Paused" then
|
elseif metadata.status == "Paused" then
|
||||||
icon.image = pause_icon
|
icon.image = play_icon
|
||||||
widget.colors = { beautiful.widget_main_color }
|
widget.colors = { beautiful.widget_main_color }
|
||||||
update_metadata(metadata)
|
update_metadata(metadata)
|
||||||
elseif metadata.status == "Stopped" then
|
elseif metadata.status == "Stopped" then
|
||||||
|
|
Loading…
Reference in New Issue