From dddbb8298447f9da2acf8bf39a4289719525970e Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Sun, 31 Aug 2025 11:35:40 -0400 Subject: [PATCH] use gridlayout --- .../notifications/NotificationMenu.qml | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/modules/bar/components/notifications/NotificationMenu.qml b/modules/bar/components/notifications/NotificationMenu.qml index 3781e6b..7354f86 100644 --- a/modules/bar/components/notifications/NotificationMenu.qml +++ b/modules/bar/components/notifications/NotificationMenu.qml @@ -14,26 +14,24 @@ StyledPopupWindow { margins: 16 radius: 8 - content: ColumnLayout { - spacing: 16 + content: GridLayout { - RowLayout { - Layout.fillWidth: true + columns: 2 - StyledSwitch { - text: "Enabled" - checked: Notifications.enabled - onClicked: Notifications.enabled = checked - } + StyledSwitch { + text: "Enabled" + checked: Notifications.enabled + onClicked: Notifications.enabled = checked + } - StyledButton { - Layout.alignment: Qt.AlignRight - text: "Clear" - onClicked: Notifications.clear() - } + StyledButton { + Layout.alignment: Qt.AlignRight + text: "Clear" + onClicked: Notifications.clear() } StyledLabel { + Layout.columnSpan: 2 color: Theme.palette.base200 StyledListView { id: notifications