more styling!!!

This commit is contained in:
Benjamin Palko 2025-04-07 20:59:43 -04:00
parent d1cc5e20ba
commit 0ba4396ab6
4 changed files with 49 additions and 16 deletions

View file

@ -13,7 +13,6 @@ $mauve: #8839ef;
:root { :root {
font-family: JetBrainsMono Nerd Font; font-family: JetBrainsMono Nerd Font;
color: $mauve;
} }
button { button {
@ -21,6 +20,10 @@ button {
font-family: inherit; font-family: inherit;
label {
background: $mantle;
}
label:hover { label:hover {
background: $crust; background: $crust;
} }
@ -30,15 +33,17 @@ label {
all: initial; all: initial;
font-family: inherit; font-family: inherit;
color: $mauve; color: $rosewater;
padding: 4px 12px; padding: 2px 12px;
background: $mantle; background: $crust;
border: 4px solid $crust; border: 4px solid $crust;
border-radius: 8px; border-radius: 8px;
} }
.no-styles { .no-styles {
all: initial; all: initial;
color: $rosewater;
} }
.active { .active {
@ -49,12 +54,13 @@ label {
.Arch { .Arch {
-gtk-icon-size: 24px; -gtk-icon-size: 24px;
padding: 4px 10px; padding: 4px 8px;
border-radius: 8px; border-radius: 8px;
background: $crust; border: 4px solid $crust;
background: $mantle;
&:hover { &:hover {
background: $surface0; background: $crust;
} }
} }
@ -65,6 +71,12 @@ label {
} }
} }
.SwayNC {
label {
padding: 0 12px;
}
}
.Tray { .Tray {
margin: 0 4px; margin: 0 4px;
} }
@ -79,19 +91,22 @@ label {
.Workspaces { .Workspaces {
background: $mantle; background: $mantle;
padding: 2px;
margin: 2px;
border-radius: 8px; border-radius: 8px;
border: 4px solid $crust; border: 4px solid $crust;
> * { > * {
margin: 4px; margin: 2px;
} }
} }
.WirePlumberMenu { .WirePlumberMenu {
contents { contents {
all: initial; all: initial;
padding: 4px 12px;
border-radius: 8px;
border: 4px solid $crust;
background: rgba($color: $base, $alpha: 0.75);
} }
arrow { arrow {
@ -101,12 +116,28 @@ label {
button { button {
margin: 4px 0; margin: 4px 0;
} }
}
.CalendarMenu {
contents {
// all: initial;
grid button {
margin: 4px;
}
label {
margin: 4px;
}
box {
padding: 4px 12px; padding: 4px 12px;
border-radius: 8px; border-radius: 8px;
border: 4px solid $crust; border: 4px solid $crust;
background: rgba($color: $mantle, $alpha: 0.9); background: rgba($color: $base, $alpha: 0.75);
}
arrow {
all: initial;
} }
} }

View file

@ -12,7 +12,7 @@ function Calendar() {
label={time().as((t) => `${t}`)} label={time().as((t) => `${t}`)}
tooltip_text={date().as((d) => `󰸗 ${d}`)} tooltip_text={date().as((d) => `󰸗 ${d}`)}
/> />
<popover> <popover cssClasses={["CalendarMenu"]}>
<Gtk.Calendar /> <Gtk.Calendar />
</popover> </popover>
</menubutton> </menubutton>

View file

@ -1,9 +1,10 @@
import { GLib } from "astal"; import { GLib } from "astal";
import { Gtk } from "astal/gtk4"; import { Gdk, Gtk } from "astal/gtk4";
const OS = function () { const OS = function () {
return ( return (
<button <button
cursor={Gdk.Cursor.new_from_name("pointer", null)}
onClicked="echo hello" onClicked="echo hello"
hexpand hexpand
halign={Gtk.Align.START} halign={Gtk.Align.START}

View file

@ -35,10 +35,11 @@ const SwayNC = function () {
return ( return (
<button <button
cssClasses={["SwayNC"]}
cursor={Gdk.Cursor.new_from_name("pointer", null)} cursor={Gdk.Cursor.new_from_name("pointer", null)}
onClicked={() => exec("swaync-client -t -sw")} onClicked={() => exec("swaync-client -t -sw")}
label={options().as((options) => ` ${Icon(options?.alt ?? "none")} `)} label={options().as((options) => `${Icon(options?.alt ?? "none")}`)}
></button> />
); );
}; };