💄 control-center,center-window: add background shadow, use gtk's spacing instead of margin

This commit is contained in:
retrozinndev
2025-06-13 18:56:16 -03:00
parent bc30068383
commit de92ea4c53
4 changed files with 14 additions and 7 deletions
+4 -1
View File
@@ -24,7 +24,9 @@ export const CenterWindow = (mon: number) => PopupWindow({
new Widget.Box({
className: "datetime",
orientation: Gtk.Orientation.VERTICAL,
valign: Gtk.Align.START,
halign: Gtk.Align.CENTER,
valign: Gtk.Align.CENTER,
vexpand: true,
children: [
new Widget.Label({
className: "time",
@@ -56,6 +58,7 @@ export const CenterWindow = (mon: number) => PopupWindow({
orientation: Gtk.Orientation.HORIZONTAL,
cssColor: "gray",
margin: 5,
spacing: 8,
alpha: .3,
visible: bind(AstalMpris.get_default(), "players").as(players => players.length > 0),
} as SeparatorProps),
+1
View File
@@ -19,6 +19,7 @@ export const ControlCenter = (mon: number) => PopupWindow({
widthRequest: 395,
child: new Widget.Box({
orientation: Gtk.Orientation.VERTICAL,
spacing: 16,
children: [
new Widget.Box({
className: "control-center-container",