Made notification panel scrollable

This commit is contained in:
2026-05-12 00:00:38 -04:00
parent 5d7d03a441
commit 2b6c1b1fc8
2 changed files with 106 additions and 114 deletions

View File

@@ -64,32 +64,27 @@ Scope {
hideTimer.stop();
}
ColumnLayout {
ListView {
id: notifs
anchors.fill: parent
anchors.margins: 4
Layout.fillWidth: true
anchors.left: parent.left
anchors.right: parent.right
visible: NotificationService.amountNotifications > 0
// Dismiss All Button
RippleButton {
clip: true
spacing: 4
model: NotificationService.notifications
header: RippleButton {
buttonText: "Dismiss All"
buttonTextColor: Appearance.m3colors.m3onTertiaryContainer
colBackground: Appearance.m3colors.m3tertiaryContainer
releaseAction: NotificationService.dismissAll
buttonRadius: Appearance.rounding.unsharpenmore
Layout.fillWidth: true
width: notifs.width - 8
}
Repeater {
model: NotificationService.notifications
NotificationItem {
required property Notification modelData
notif: modelData
textWidth: root.panelWidth - 14
notificationRounding: Appearance.rounding.unsharpenmore
}
delegate: NotificationItem {
required property Notification modelData
notif: modelData
textWidth: notifs.width - 8
notificationRounding: Appearance.rounding.unsharpenmore
Layout.fillWidth: true
}
}
}