ags(control-center): larger window

This commit is contained in:
retrozinndev
2025-04-14 18:38:24 -03:00
parent fd6470882e
commit 0ad4aaac90
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export const ControlCenter = (mon: number) => new Widget.Window({
css: `margin-top: 10px; css: `margin-top: 10px;
margin-right: 10px; margin-right: 10px;
margin-bottom: 10px;`, margin-bottom: 10px;`,
widthRequest: 400, widthRequest: 420,
onButtonPressEvent: () => true, onButtonPressEvent: () => true,
orientation: Gtk.Orientation.VERTICAL, orientation: Gtk.Orientation.VERTICAL,
children: [ children: [
+2 -1
View File
@@ -2,6 +2,7 @@ import { Astal, Gdk, Gtk, Widget } from "astal/gtk3";
import { getDateTime } from "../scripts/time"; import { getDateTime } from "../scripts/time";
import { execAsync, GLib } from "astal"; import { execAsync, GLib } from "astal";
import { AskPopup } from "../widget/AskPopup"; import { AskPopup } from "../widget/AskPopup";
import { Windows } from "../windows";
const { TOP, LEFT, RIGHT, BOTTOM } = Astal.WindowAnchor; const { TOP, LEFT, RIGHT, BOTTOM } = Astal.WindowAnchor;
@@ -19,7 +20,7 @@ export const LogoutMenu = (mon: number) => new Widget.Window({
}, },
child: new Widget.EventBox({ child: new Widget.EventBox({
className: "logout-menu", className: "logout-menu",
onClick: () => execAsync("astal close logout-menu"), onClick: () => Windows.close("logout-menu"),
child: new Widget.Box({ child: new Widget.Box({
expand: true, expand: true,
orientation: Gtk.Orientation.VERTICAL, orientation: Gtk.Orientation.VERTICAL,