[AI] Made Notification Dismiss All button independent from scroll
This commit is contained in:
@@ -64,29 +64,37 @@ 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
|
RippleButton {
|
||||||
header: 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
|
Layout.fillWidth: true
|
||||||
width: notifs.width - 8
|
}
|
||||||
}
|
|
||||||
delegate: NotificationItem {
|
ListView {
|
||||||
required property Notification modelData
|
id: notifs
|
||||||
notif: modelData
|
Layout.fillWidth: true
|
||||||
textWidth: notifs.width - 8
|
Layout.fillHeight: true
|
||||||
notificationRounding: Appearance.rounding.unsharpenmore
|
clip: true
|
||||||
Layout.fillWidth: true
|
spacing: 4
|
||||||
}
|
model: NotificationService.notifications
|
||||||
}
|
delegate: NotificationItem {
|
||||||
|
required property Notification modelData
|
||||||
|
notif: modelData
|
||||||
|
textWidth: notifs.width - 8
|
||||||
|
notificationRounding: Appearance.rounding.unsharpenmore
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user