Made notification panel scrollable
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user