Alignment fix for bar

laptop 2023-06-17
Elias Almqvist 1 year ago
parent 82e334e563
commit 5d92afebc3
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 2
      eww/.config/eww/eww.scss
  2. 12
      eww/.config/eww/eww.yuck

@ -47,7 +47,7 @@ tooltip {
padding-left: 1.5rem; padding-left: 1.5rem;
padding-right: 1.5rem; padding-right: 1.5rem;
padding-bottom: 0; padding-bottom: 0;
padding-top: 4px; padding-top: 1px;
} }
.segment-start, .segment-start,

@ -6,7 +6,7 @@
:valign "center" :valign "center"
(start-control :screen screen) (start-control :screen screen)
) )
(box :class "segment-middle" (box :class "segment-center"
:halign "center" :halign "center"
:valign "center" :valign "center"
:space-evenly true :space-evenly true
@ -28,7 +28,7 @@
:valign "center" :valign "center"
(start-control :screen screen) (start-control :screen screen)
) )
(box :class "segment-middle" (box :class "segment-center"
:halign "center" :halign "center"
:valign "center" :valign "center"
:space-evenly true :space-evenly true
@ -56,7 +56,7 @@
(box :orientation "h" (box :orientation "h"
:class "pm-inner" :class "pm-inner"
:space-evenly true :space-evenly true
:valign "middle" :valign "center"
:spacing 8 :spacing 8
;; Lock screen ;; Lock screen
@ -110,7 +110,7 @@
(box :orientation "h" (box :orientation "h"
:class "time" :class "time"
:space-evenly "false" :space-evenly "false"
:halign "middle" :halign "center"
(button :onclick "scripts/popup calendar" (button :onclick "scripts/popup calendar"
:class "day" full-time) :class "day" full-time)
)) ))
@ -148,7 +148,7 @@
(box :orientation "v" (box :orientation "v"
:space-evenly "false" :space-evenly "false"
(label :class "icon bat" (label :class "icon bat"
:halign "middle" :halign "center"
:text battery :text battery
:tooltip "Battery: ${battery-cappacity}%"))) :tooltip "Battery: ${battery-cappacity}%")))
(defpoll battery :interval "1s" "scripts/battery icon") (defpoll battery :interval "1s" "scripts/battery icon")
@ -157,7 +157,7 @@
;; Wifi Widgets ;; ;; Wifi Widgets ;;
(defwidget wifi [] (defwidget wifi []
(box :orientation "v" (box :orientation "v"
:halign "middle" :halign "center"
:tooltip "SSID: ${wifi-name}" :tooltip "SSID: ${wifi-name}"
(button :class "icon wifi-icon" wifi-icon (button :class "icon wifi-icon" wifi-icon
))) )))

Loading…
Cancel
Save