diff --git a/modules/user/ags/ags/.gitignore b/modules/user/ags/ags/.gitignore
new file mode 100644
index 0000000..312d00d
--- /dev/null
+++ b/modules/user/ags/ags/.gitignore
@@ -0,0 +1,2 @@
+accent.css
+colors.scss
\ No newline at end of file
diff --git a/modules/user/ags/ags/style.scss b/modules/user/ags/ags/style.scss
index 62194e8..ebda634 100644
--- a/modules/user/ags/ags/style.scss
+++ b/modules/user/ags/ags/style.scss
@@ -3,17 +3,23 @@
$radius: 10px;
-%item {
+* {
all: unset;
+}
+
+%item {
background: $bg;
border-radius: $radius;
- padding: 4px;
+ padding: 6px 8px;
- & + &, .item + & { margin-left: 4px; }
+ & + &, .item + &, & + .item { margin-left: 4px; }
- label { margin: 0 8px; }
+ icon + label { margin-left: 4px; }
}
+.item + .item { margin-left: 4px; }
+
+
window.Bar {
border: none;
box-shadow: none;
@@ -27,9 +33,10 @@ window.Bar {
}
.Workspaces {
- button {
- all: unset;
+ padding: 0;
+ button {
+ margin: 0;
&:hover label {
background: $surface0;
color: $accent;
@@ -44,7 +51,7 @@ window.Bar {
label {
transition: 200ms;
padding: 0 6px;
- margin: 2px;
+ margin: 0px;
border-radius: $radius;
border: 1pt solid transparent;
}
@@ -59,12 +66,12 @@ window.Bar {
.Layout.en { color: $accent; }
.SysTray button {
- all: unset;
- padding: 8px;
+ padding: 4px;
border-radius: inherit;
&:hover {
background: $surface0;
+ border-radius: 4px;
}
}
@@ -82,16 +89,17 @@ window.Bar {
}
}
- .Battery label {
- padding-left: 0;
- margin-left: 0;
- }
-
- .Time { padding: 0 8px; }
-
- .AudioSlider icon { margin-left: 8px; }
-
.Workspaces, .Wifi, .Layout, .Media, .SysTray, .AudioSlider, .Battery, .Time {
@extend %item;
}
+
+ .Wifi, .AudioSlider {
+ &, button {
+ &:hover { background-color: $surface0; }
+ &:active {
+ background-color: $accent;
+ color: $bg;
+ }
+ }
+ }
}
diff --git a/modules/user/ags/ags/widget/Bar.tsx b/modules/user/ags/ags/widget/Bar.tsx
index 11a590e..4f3d93e 100644
--- a/modules/user/ags/ags/widget/Bar.tsx
+++ b/modules/user/ags/ags/widget/Bar.tsx
@@ -28,11 +28,11 @@ export default function Bar(monitor: Gdk.Monitor) {
+
-
diff --git a/modules/user/ags/ags/widget/elements/Wifi.tsx b/modules/user/ags/ags/widget/elements/Wifi.tsx
index 44f9816..481ca9e 100644
--- a/modules/user/ags/ags/widget/elements/Wifi.tsx
+++ b/modules/user/ags/ags/widget/elements/Wifi.tsx
@@ -6,7 +6,9 @@ export default function Wifi() {
const network = Network.get_default()
const wifi = bind(network, "wifi")
- return
+ return
{wifi.as(wifi => wifi && (