From 41efe10dd4e48a1e611bacb81250c48c43d2a04c Mon Sep 17 00:00:00 2001 From: soraefir Date: Sat, 13 Apr 2024 12:06:31 +0200 Subject: [PATCH] systray css --- .../wayland/apps/eww/bar/css/_systray.scss | 32 +++++++++++++++++++ modules/home/wayland/apps/eww/bar/eww.scss | 3 ++ .../wayland/apps/eww/bar/modules/systray.yuck | 2 +- 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 modules/home/wayland/apps/eww/bar/css/_systray.scss diff --git a/modules/home/wayland/apps/eww/bar/css/_systray.scss b/modules/home/wayland/apps/eww/bar/css/_systray.scss new file mode 100644 index 0000000..2a3bbbb --- /dev/null +++ b/modules/home/wayland/apps/eww/bar/css/_systray.scss @@ -0,0 +1,32 @@ +.tray menu { + background-color: $base01; + color: $base07; + @include border-radius; + @include border-active; + + + padding: 10px 0px; + + >menuitem { + margin: 0px $border-width; + padding: 0px 10px; + + &:disabled label { + color: $base04; + } + + &:hover { + background-color: $base0C; + } + } + + separator { + background-color: $base03; + padding-top: 1px; + margin:10px 0px; + + &:last-child { + padding: unset; + } + } +} \ No newline at end of file diff --git a/modules/home/wayland/apps/eww/bar/eww.scss b/modules/home/wayland/apps/eww/bar/eww.scss index cc92145..4b427ec 100644 --- a/modules/home/wayland/apps/eww/bar/eww.scss +++ b/modules/home/wayland/apps/eww/bar/eww.scss @@ -13,6 +13,8 @@ } @mixin border-active { + border-width: $border-width; + border-style: solid; border-color: $base04; } @@ -115,6 +117,7 @@ tooltip { @import 'css/clock'; @import 'css/radio'; @import 'css/powermenu'; +@import 'css/systray'; /* BAR */ diff --git a/modules/home/wayland/apps/eww/bar/modules/systray.yuck b/modules/home/wayland/apps/eww/bar/modules/systray.yuck index 822ccf2..0be0668 100644 --- a/modules/home/wayland/apps/eww/bar/modules/systray.yuck +++ b/modules/home/wayland/apps/eww/bar/modules/systray.yuck @@ -7,7 +7,7 @@ :class "tray" :space-evenly "true" :orientation "v" - :icon-size 32 + :icon-size 24 :prepend-new "false" ) )