From 0ad4aaac90f963aa2c1b5331f5d727dadf0d1fbc Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Mon, 14 Apr 2025 18:38:24 -0300 Subject: [PATCH] :sparkles: ags(control-center): larger window --- ags/window/ControlCenter.ts | 2 +- ags/window/LogoutMenu.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ags/window/ControlCenter.ts b/ags/window/ControlCenter.ts index 980808f..f300590 100644 --- a/ags/window/ControlCenter.ts +++ b/ags/window/ControlCenter.ts @@ -42,7 +42,7 @@ export const ControlCenter = (mon: number) => new Widget.Window({ css: `margin-top: 10px; margin-right: 10px; margin-bottom: 10px;`, - widthRequest: 400, + widthRequest: 420, onButtonPressEvent: () => true, orientation: Gtk.Orientation.VERTICAL, children: [ diff --git a/ags/window/LogoutMenu.ts b/ags/window/LogoutMenu.ts index 6a6236b..3a79564 100644 --- a/ags/window/LogoutMenu.ts +++ b/ags/window/LogoutMenu.ts @@ -2,6 +2,7 @@ import { Astal, Gdk, Gtk, Widget } from "astal/gtk3"; import { getDateTime } from "../scripts/time"; import { execAsync, GLib } from "astal"; import { AskPopup } from "../widget/AskPopup"; +import { Windows } from "../windows"; const { TOP, LEFT, RIGHT, BOTTOM } = Astal.WindowAnchor; @@ -19,7 +20,7 @@ export const LogoutMenu = (mon: number) => new Widget.Window({ }, child: new Widget.EventBox({ className: "logout-menu", - onClick: () => execAsync("astal close logout-menu"), + onClick: () => Windows.close("logout-menu"), child: new Widget.Box({ expand: true, orientation: Gtk.Orientation.VERTICAL,