ags: make osd work, new window management system, lots of improvements

This commit is contained in:
retrozinndev
2025-02-07 16:02:58 -03:00
parent 0bd0b53589
commit b0bd785ddd
24 changed files with 559 additions and 254 deletions
+4 -2
View File
@@ -1,12 +1,14 @@
import { Astal, Gdk, Gtk, Widget } from "astal/gtk3";
import { Astal, Gtk, Widget } from "astal/gtk3";
import { QuickActions } from "../widget/control-center/QuickActions";
import { Tiles } from "../widget/control-center/Tiles";
import { Sliders } from "../widget/control-center/Sliders";
const widgetsContainer: Widget.Box = new Widget.Box({
className: "control-center-container",
orientation: Gtk.Orientation.VERTICAL,
} as Widget.BoxProps,
QuickActions,
Sliders,
Tiles);
export const ControlCenter: Widget.Window = new Widget.Window({
@@ -15,10 +17,10 @@ export const ControlCenter: Widget.Window = new Widget.Window({
canFocus: true,
exclusivity: Astal.Exclusivity.NORMAL,
anchor: Astal.WindowAnchor.TOP | Astal.WindowAnchor.RIGHT,
layer: Astal.Layer.OVERLAY,
margin_top: 10,
margin_right: 10,
width_request: 450,
height_request: 400,
monitor: 0,
visible: false
} as Widget.WindowProps, widgetsContainer);