[AI] Made Notification Dismiss All button independent from scroll

This commit is contained in:
2026-06-05 11:46:51 -04:00
parent cd4df20eb4
commit 9fc889b372

View File

@@ -64,21 +64,28 @@ Scope {
hideTimer.stop(); hideTimer.stop();
} }
ListView { ColumnLayout {
id: notifs id: layout
anchors.fill: parent anchors.fill: parent
anchors.margins: 4 anchors.margins: 4
clip: true
spacing: 4 spacing: 4
model: NotificationService.notifications
header: RippleButton { RippleButton {
buttonText: "Dismiss All" buttonText: "Dismiss All"
buttonTextColor: Appearance.m3colors.m3onTertiaryContainer buttonTextColor: Appearance.m3colors.m3onTertiaryContainer
colBackground: Appearance.m3colors.m3tertiaryContainer colBackground: Appearance.m3colors.m3tertiaryContainer
releaseAction: NotificationService.dismissAll releaseAction: NotificationService.dismissAll
buttonRadius: Appearance.rounding.unsharpenmore buttonRadius: Appearance.rounding.unsharpenmore
width: notifs.width - 8 Layout.fillWidth: true
} }
ListView {
id: notifs
Layout.fillWidth: true
Layout.fillHeight: true
clip: true
spacing: 4
model: NotificationService.notifications
delegate: NotificationItem { delegate: NotificationItem {
required property Notification modelData required property Notification modelData
notif: modelData notif: modelData
@@ -90,4 +97,5 @@ Scope {
} }
} }
} }
}
} }