making battery notify widget have a close button
This commit is contained in:
parent
5d00edbf81
commit
e8038dc9ab
|
@ -1,3 +1,6 @@
|
|||
|
||||
(defvar batt_close_hover false)
|
||||
|
||||
(defwindow battery
|
||||
:geometry (geometry :x "0px"
|
||||
:y "40px"
|
||||
|
@ -34,4 +37,8 @@
|
|||
:value {EWW_BATTERY["BAT1"].capacity}
|
||||
:orientation "h"
|
||||
:max 100
|
||||
:min 0))))
|
||||
:min 0))
|
||||
(button
|
||||
:class "close-icon"
|
||||
:onclick "eww close battery"
|
||||
"")))
|
||||
|
|
11
eww/eww.scss
11
eww/eww.scss
|
@ -759,6 +759,17 @@ scale trough {
|
|||
margin: 20px 50px 10px 40px;
|
||||
}
|
||||
|
||||
.close-icon {
|
||||
margin-left: -10px;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 50px;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.close-icon:hover {
|
||||
color: $base08;
|
||||
}
|
||||
|
||||
.volume-container {
|
||||
background-color: $darktransparent;
|
||||
border-radius: 16px;
|
||||
|
|
Loading…
Reference in a new issue