don't animate on notificationwindow
This commit is contained in:
@@ -26,13 +26,15 @@ BackgroundRectangle {
|
||||
return Quickshell.iconPath(notification?.appIcon);
|
||||
}
|
||||
|
||||
property bool collapsed: false
|
||||
property bool collapsed: true
|
||||
|
||||
implicitWidth: 400
|
||||
readonly property real contentHeight: Math.max(notifLayout.implicitHeight + 20, 100)
|
||||
|
||||
height: collapsed ? 0 : contentHeight
|
||||
|
||||
Component.onCompleted: { root.collapsed = false }
|
||||
|
||||
Behavior on height {
|
||||
SequentialAnimation {
|
||||
NumberAnimation {
|
||||
|
||||
@@ -93,6 +93,7 @@ PanelWindow {
|
||||
required property var modelData
|
||||
notification: modelData
|
||||
implicitWidth: listView.width - 20
|
||||
collapsed: false
|
||||
onDismissed: {
|
||||
NotificationService.notificationDismiss(notification);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user