From 1a5f7a5256218c26ee624d219e4b97577e12d355 Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Thu, 10 Apr 2025 16:48:31 -0300 Subject: [PATCH] :recycle: ags(control-center): stuff --- ags/window/ControlCenter.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ags/window/ControlCenter.ts b/ags/window/ControlCenter.ts index 09cdbff..980808f 100644 --- a/ags/window/ControlCenter.ts +++ b/ags/window/ControlCenter.ts @@ -17,7 +17,7 @@ export const ControlCenter = (mon: number) => new Widget.Window({ layer: Astal.Layer.OVERLAY, focusOnMap: true, monitor: mon, - onDestroy: (_) => { + onDestroy: () => { hidePages(); }, onButtonPressEvent: (_, event: Gdk.Event) => { @@ -39,12 +39,9 @@ export const ControlCenter = (mon: number) => new Widget.Window({ child: new Widget.Box({ className: "popup", halign: Gtk.Align.END, - css: `.popup { - margin-top: 10px; - margin-right: 10px; - margin-bottom: 10px; - }`, - vexpand: true, + css: `margin-top: 10px; + margin-right: 10px; + margin-bottom: 10px;`, widthRequest: 400, onButtonPressEvent: () => true, orientation: Gtk.Orientation.VERTICAL,