style(eww): Stylise systray

This commit is contained in:
Ahmad Ansori Palembani 2024-05-15 10:23:41 +07:00
parent f249795378
commit d65af418f6
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 18 additions and 5 deletions

View file

@ -16,6 +16,8 @@ $bg-radius: 8px;
$bg-margin: 4px; $bg-margin: 4px;
// << bg // << bg
$blue-500: #1CA2DA;
/** tooltip!! **/ /** tooltip!! **/
tooltip { tooltip {
.background { .background {
@ -30,19 +32,30 @@ tooltip {
} }
} }
.csd.background.popup { /* SysTray popup */ .tray menu { /* SysTray popup */
background-color: black; padding: 5px;
background-color: $bg-300;
border-radius: $bg-radius;
separator { separator {
padding-bottom: 8px; padding-bottom: 8px;
} }
menuitem { menuitem {
-gtk-dpi: 16; padding: 2px 8px;
font-size: 14px;
}
menuitem:last-child {
margin: 0px 0px $bg-radius 0px;
}
menuitem:first-child {
margin: $bg-radius 0px 0px 0px;
} }
menuitem:hover { menuitem:hover {
background-color: red; background-color: $blue-500;
} }
} }

View file

@ -36,7 +36,7 @@
(box :halign "end" (box :halign "end"
:class "end" :class "end"
:space-evenly false :space-evenly false
(systray :icon-size "16" :pack-direction "rtl"))) (systray :class "tray" :icon-size "16" :pack-direction "rtl")))
(defwidget workspaces [] (defwidget workspaces []
(box :class "workspaces" (box :class "workspaces"