feat(eww): add expand button for spotify player

This commit is contained in:
matt1432 2023-08-19 03:52:54 -04:00
parent b1c1600971
commit 1cac40745f
2 changed files with 16 additions and 2 deletions

View file

@ -148,7 +148,7 @@
border-bottom: 2px solid $contrastbg;
border-radius: 15px;
margin-top: 30px;
margin-bottom: 50px;
margin-bottom: 20px;
.slider {
margin-left: 10px;

View file

@ -56,7 +56,7 @@
)
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defvar expand_player "false")
(defwidget quick-settings []
(box :orientation "v"
:space-evenly false
@ -317,11 +317,25 @@
)
)
)
(centerbox :orientation "h"
:style "margin-bottom: 10px;"
(label)
(eventbox :cursor "pointer"
:onclick "${expand_player == 'true' ? 'eww update expand_player=false' : 'eww update expand_player=true'}"
"${expand_player == 'true' ? ' ' : ' ' }"
)
(label)
)
)
(revealer :reveal expand_player
:transition "slidedown"
(box :class "player"
(playerinfo)
)
)
)
)
(defwindow quick-settings-reveal
:monitor 0