use gridlayout

This commit is contained in:
Benjamin Palko 2025-08-31 11:35:40 -04:00
parent e27dadba0f
commit dddbb82984

View file

@ -14,26 +14,24 @@ StyledPopupWindow {
margins: 16 margins: 16
radius: 8 radius: 8
content: ColumnLayout { content: GridLayout {
spacing: 16
RowLayout { columns: 2
Layout.fillWidth: true
StyledSwitch { StyledSwitch {
text: "Enabled" text: "Enabled"
checked: Notifications.enabled checked: Notifications.enabled
onClicked: Notifications.enabled = checked onClicked: Notifications.enabled = checked
} }
StyledButton { StyledButton {
Layout.alignment: Qt.AlignRight Layout.alignment: Qt.AlignRight
text: "Clear" text: "Clear"
onClicked: Notifications.clear() onClicked: Notifications.clear()
}
} }
StyledLabel { StyledLabel {
Layout.columnSpan: 2
color: Theme.palette.base200 color: Theme.palette.base200
StyledListView { StyledListView {
id: notifications id: notifications