fix: resolve conflicting click actions in status bar volume
This commit is contained in:
parent
7a4b7cd6cc
commit
e3228bb1ef
1 changed files with 8 additions and 7 deletions
|
|
@ -110,11 +110,11 @@
|
||||||
(defwidget bar_scale [?class reveal-name reveal value symbol onchange ?onclick]
|
(defwidget bar_scale [?class reveal-name reveal value symbol onchange ?onclick]
|
||||||
(eventbox :onhover "${EWW_CMD} update ${reveal-name}=true"
|
(eventbox :onhover "${EWW_CMD} update ${reveal-name}=true"
|
||||||
:onhoverlost "${EWW_CMD} update ${reveal-name}=false"
|
:onhoverlost "${EWW_CMD} update ${reveal-name}=false"
|
||||||
:onclick onclick
|
|
||||||
(box :class "bar-scale ${class}"
|
(box :class "bar-scale ${class}"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
(label :class "symbol"
|
(eventbox :onclick onclick
|
||||||
:text symbol)
|
(label :class "symbol"
|
||||||
|
:text symbol))
|
||||||
(revealer :transition "slideright"
|
(revealer :transition "slideright"
|
||||||
:reveal reveal
|
:reveal reveal
|
||||||
:duration "400ms"
|
:duration "400ms"
|
||||||
|
|
@ -124,10 +124,11 @@
|
||||||
:min 0
|
:min 0
|
||||||
:max 101
|
:max 101
|
||||||
:onchange onchange))
|
:onchange onchange))
|
||||||
(label :class "percent"
|
(eventbox :onclick onclick
|
||||||
:width 29
|
(label :class "percent"
|
||||||
:xalign 0
|
:width 29
|
||||||
:text "${value}%"))))
|
:xalign 0
|
||||||
|
:text "${value}%")))))
|
||||||
|
|
||||||
|
|
||||||
(defvar volume_reveal false)
|
(defvar volume_reveal false)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue