feat(eww): add expand button for spotify player
This commit is contained in:
parent
b1c1600971
commit
1cac40745f
2 changed files with 16 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue