[AI] Made Notification Dismiss All button independent from scroll
This commit is contained in:
@@ -64,21 +64,28 @@ Scope {
|
||||
hideTimer.stop();
|
||||
}
|
||||
|
||||
ListView {
|
||||
id: notifs
|
||||
ColumnLayout {
|
||||
id: layout
|
||||
anchors.fill: parent
|
||||
anchors.margins: 4
|
||||
clip: true
|
||||
spacing: 4
|
||||
model: NotificationService.notifications
|
||||
header: RippleButton {
|
||||
|
||||
RippleButton {
|
||||
buttonText: "Dismiss All"
|
||||
buttonTextColor: Appearance.m3colors.m3onTertiaryContainer
|
||||
colBackground: Appearance.m3colors.m3tertiaryContainer
|
||||
releaseAction: NotificationService.dismissAll
|
||||
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 {
|
||||
required property Notification modelData
|
||||
notif: modelData
|
||||
@@ -91,3 +98,4 @@ Scope {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user