ags: lot of stuff lmao

This commit is contained in:
retrozinndev
2025-02-28 10:21:37 -03:00
parent ff4365ab6d
commit 1a1a5d63f8
31 changed files with 748 additions and 217 deletions
+7 -3
View File
@@ -1,10 +1,12 @@
import { Variable } from "astal";
import { Astal, Gtk, Widget } from "astal/gtk3";
import { PopupWindow, PopupWindowProps } from "../widget/PopupWindow";
// TODO
export interface RunnerProps {
anchor?: Astal.WindowAnchor;
halign?: Gtk.Align;
valign?: Gtk.Align;
width?: number;
height?: number;
entryPlaceHolder?: string;
@@ -20,8 +22,10 @@ export function Runner(props?: RunnerProps) {
} as Widget.BoxProps);
return new Widget.Window({
return PopupWindow({
namespace: "runner",
halign: props?.halign || Gtk.Align.CENTER,
valign: props?.valign || Gtk.Align.CENTER,
widthRequest: props?.width || 600,
heightRequest: props?.height || 500,
child: new Widget.Box({
@@ -33,5 +37,5 @@ export function Runner(props?: RunnerProps) {
} as Widget.EntryProps),
]
} as Widget.BoxProps)
} as Widget.WindowProps);
} as PopupWindowProps);
}