From d05f6174b72e826f10ee91ec13fc5f49703f1da9 Mon Sep 17 00:00:00 2001 From: Franek Date: Mon, 19 May 2025 20:23:08 +0200 Subject: [PATCH] reorganize bar, make styles consistent --- ags/styles/components/_bar.scss | 15 +++++++++++---- ags/styles/components/_battery_info.scss | 12 ++++-------- ags/widget/bar/bar.tsx | 6 ++++-- ags/widget/bar/components/network_info.tsx | 4 ++-- 4 files changed, 21 insertions(+), 16 deletions(-) diff --git a/ags/styles/components/_bar.scss b/ags/styles/components/_bar.scss index f8669b7..c0f62a2 100644 --- a/ags/styles/components/_bar.scss +++ b/ags/styles/components/_bar.scss @@ -1,10 +1,18 @@ @use '../theme_colors.scss' as *; window.bar { - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; background: color-mix(in srgb, $base00, transparent 15%); - margin: 0; + + >box { + padding: 0.25rem 0; + } + + >box>*:not(box), >box>box>* { + margin: 0 0.25rem; + padding: 0 0.5rem; + background: $base01; + border-radius: 1rem; + } * { color: $base0A; @@ -17,7 +25,6 @@ window.bar { .tray .item { padding: 0; margin: 0; - background: transparent; image { padding: 0; diff --git a/ags/styles/components/_battery_info.scss b/ags/styles/components/_battery_info.scss index d2b7a09..ca14810 100644 --- a/ags/styles/components/_battery_info.scss +++ b/ags/styles/components/_battery_info.scss @@ -33,24 +33,20 @@ window.battery_info { window.battery_info button { transition: all 0.2s ease-in-out; - background: color-mix(in srgb, $base00, transparent 15%); + background: $base00; border: 2px solid $base01; margin: 5px; &:hover { background: $base01; - - * { - color: $base0A; - } } &.active { - background: $base01; - border: 2px solid $base00; + background: $base0A; + border: 0.5px solid $base00; * { - color: $base0A; + color: $base01; } } } diff --git a/ags/widget/bar/bar.tsx b/ags/widget/bar/bar.tsx index 23e675a..9c37124 100644 --- a/ags/widget/bar/bar.tsx +++ b/ags/widget/bar/bar.tsx @@ -28,19 +28,21 @@ export default function Bar(monitor_id: number) { hexpand > - {Workspace()} + {Workspace()} - {BatteryInfo({ battery })} + + {NetworkInfo()}