💥 ags(control-center/pages): fix xalign on button deprecated warning

This commit is contained in:
retrozinndev
2025-04-22 22:11:16 -03:00
parent eac82dd227
commit c6cb481b4d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ export const BluetoothPage: (() => Page) = () => new Page({
new Widget.Button({ new Widget.Button({
className: "more", className: "more",
label: "More settings", label: "More settings",
xalign: 0 setup: (self) => self.set_alignment(0, 0.5)
} as Widget.ButtonProps) } as Widget.ButtonProps)
] ]
} as Widget.BoxProps) } as Widget.BoxProps)
+1 -1
View File
@@ -99,7 +99,7 @@ export const PageNetwork: (() => Page) = () => new Page({
} as SeparatorProps), } as SeparatorProps),
new Widget.Button({ new Widget.Button({
label: "More settings", label: "More settings",
xalign: 0, setup: (self) => self.set_alignment(0, 0.5),
onClick: () => { onClick: () => {
Windows.close("control-center"); Windows.close("control-center");
AstalHyprland.get_default().dispatch("exec", "[animationstyle gnomed] nm-connection-editor"); AstalHyprland.get_default().dispatch("exec", "[animationstyle gnomed] nm-connection-editor");