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