mirror of
https://github.com/streetturtle/awesome-wm-widgets.git
synced 2024-11-15 19:48:04 +01:00
swap play and pause icons to indicate intended action instead of the status
This commit is contained in:
parent
a69682b240
commit
0391d98acb
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue