fix(ags): new ags config
This commit is contained in:
1 parent
81dadcbb87
commit
99a340b73c
4 files changed
+32
-20
No files matched your search
@@ -0,0 +1,2 @@
|
|||||||
|
accent.css
|
||||||
|
colors.scss
|
||||||
@@ -3,17 +3,23 @@
|
|||||||
|
|
||||||
$radius: 10px;
|
$radius: 10px;
|
||||||
|
|
||||||
%item {
|
* {
|
||||||
all: unset;
|
all: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
%item {
|
||||||
background: $bg;
|
background: $bg;
|
||||||
border-radius: $radius;
|
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 {
|
window.Bar {
|
||||||
border: none;
|
border: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
@@ -27,9 +33,10 @@ window.Bar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.Workspaces {
|
.Workspaces {
|
||||||
button {
|
padding: 0;
|
||||||
all: unset;
|
|
||||||
|
|
||||||
|
button {
|
||||||
|
margin: 0;
|
||||||
&:hover label {
|
&:hover label {
|
||||||
background: $surface0;
|
background: $surface0;
|
||||||
color: $accent;
|
color: $accent;
|
||||||
@@ -44,7 +51,7 @@ window.Bar {
|
|||||||
label {
|
label {
|
||||||
transition: 200ms;
|
transition: 200ms;
|
||||||
padding: 0 6px;
|
padding: 0 6px;
|
||||||
margin: 2px;
|
margin: 0px;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
border: 1pt solid transparent;
|
border: 1pt solid transparent;
|
||||||
}
|
}
|
||||||
@@ -59,12 +66,12 @@ window.Bar {
|
|||||||
.Layout.en { color: $accent; }
|
.Layout.en { color: $accent; }
|
||||||
|
|
||||||
.SysTray button {
|
.SysTray button {
|
||||||
all: unset;
|
padding: 4px;
|
||||||
padding: 8px;
|
|
||||||
border-radius: inherit;
|
border-radius: inherit;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: $surface0;
|
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 {
|
.Workspaces, .Wifi, .Layout, .Media, .SysTray, .AudioSlider, .Battery, .Time {
|
||||||
@extend %item;
|
@extend %item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.Wifi, .AudioSlider {
|
||||||
|
&, button {
|
||||||
|
&:hover { background-color: $surface0; }
|
||||||
|
&:active {
|
||||||
|
background-color: $accent;
|
||||||
|
color: $bg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -28,11 +28,11 @@ export default function Bar(monitor: Gdk.Monitor) {
|
|||||||
<Media />
|
<Media />
|
||||||
</box>
|
</box>
|
||||||
<box hexpand halign={Gtk.Align.END} >
|
<box hexpand halign={Gtk.Align.END} >
|
||||||
|
<SysTray />
|
||||||
<Wifi />
|
<Wifi />
|
||||||
<Audio />
|
<Audio />
|
||||||
<BatteryLevel />
|
<BatteryLevel />
|
||||||
<Time />
|
<Time />
|
||||||
<SysTray />
|
|
||||||
</box>
|
</box>
|
||||||
</centerbox>
|
</centerbox>
|
||||||
</window>
|
</window>
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ export default function Wifi() {
|
|||||||
const network = Network.get_default()
|
const network = Network.get_default()
|
||||||
const wifi = bind(network, "wifi")
|
const wifi = bind(network, "wifi")
|
||||||
|
|
||||||
return <box visible={wifi.as(Boolean)}>
|
return <box
|
||||||
|
visible={wifi.as(Boolean)}
|
||||||
|
className="item">
|
||||||
{wifi.as(wifi => wifi && (
|
{wifi.as(wifi => wifi && (
|
||||||
<button
|
<button
|
||||||
className="Wifi"
|
className="Wifi"
|
||||||
|
|||||||
Reference in new issue
Block a user