Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:epopov:branches:openSUSE:Factory
plasma6-workspace
2002-notifications-applet.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 2002-notifications-applet.patch of Package plasma6-workspace
diff --git a/applets/notifications/package/contents/ui/DraggableDelegate.qml b/applets/notifications/package/contents/ui/DraggableDelegate.qml index 921ae3e3f0f8047000b4d46c08b248f2f2e5fdfd..317cbb9182da0a1631d8b5de95c8179523c5d06b 100644 --- a/applets/notifications/package/contents/ui/DraggableDelegate.qml +++ b/applets/notifications/package/contents/ui/DraggableDelegate.qml @@ -16,7 +16,6 @@ MouseArea { implicitWidth: contentItem ? contentItem.implicitWidth : 0 implicitHeight: contentItem ? contentItem.implicitHeight : 0 - opacity: 1 - Math.min(1, 1.5 * Math.abs(x) / width) drag { axis: Drag.XAxis diff --git a/applets/notifications/package/contents/ui/FullRepresentation.qml b/applets/notifications/package/contents/ui/FullRepresentation.qml index d128bae9a2cca3af0af9b334d2858e5d7121431a..63ca4825329ef6824ca522c6bbe217742e2bb424 100644 --- a/applets/notifications/package/contents/ui/FullRepresentation.qml +++ b/applets/notifications/package/contents/ui/FullRepresentation.qml @@ -170,77 +170,9 @@ PlasmaExtras.Representation { width: ListView.view.width contentItem: delegateLoader - // NOTE: The following animations replace the Transitions in the ListView - // because they don't work when the items change size during the animation - // (showing/hiding the show more/show less button) in that case they will - // animate to a wrong position and stay there - // see https://bugs.kde.org/show_bug.cgi?id=427894 and QTBUG-110366 - property real oldY: -1 - property int oldListCount: -1 - onYChanged: { - if (oldY < 0 || oldListCount === list.count) { - oldY = y; - return; - } - traslAnim.from = oldY - y; - traslAnim.running = true; - oldY = y; - oldListCount = list.count; - } - transform: Translate { - id: transl - } - NumberAnimation { - id: traslAnim - target: transl - properties: "y" - to: 0 - duration: Kirigami.Units.longDuration - } - opacity: 0 - ListView.onAdd: appearAnim.restart(); - Component.onCompleted: { - Qt.callLater(() => { - if (!appearAnim.running) { - opacity = 1; - } - }); - oldListCount = list.count; - } - - SequentialAnimation { - id: appearAnim - PropertyAnimation { target: delegate; property: "opacity"; to: 0 } - PauseAnimation { duration: Kirigami.Units.longDuration} - NumberAnimation { - target: delegate - property: "opacity" - from: 0 - to: 1 - duration: Kirigami.Units.longDuration - } - } - - SequentialAnimation { - id: removeAnimation - PropertyAction { target: delegate; property: "ListView.delayRemove"; value: true } - ParallelAnimation { - NumberAnimation { target: delegate; property: "opacity"; to: 0; duration: Kirigami.Units.longDuration } - NumberAnimation { - target: transl - property: "x" - to: list.width - (scrollView.PlasmaComponents3.ScrollBar.vertical.visible ? Kirigami.Units.largeSpacing * 2 : 0) - duration: Kirigami.Units.longDuration - } - } - PropertyAction { target: delegate; property: "ListView.delayRemove"; value: false } - } - draggable: !model.isGroup && model.type != NotificationManager.Notifications.JobType onDismissRequested: { - removeAnimation.start(); - historyModel.close(historyModel.index(index, 0)); } @@ -402,7 +334,6 @@ PlasmaExtras.Representation { } function close() { - removeAnimation.start(); historyModel.close(historyModel.index(index, 0)); } } @@ -427,7 +358,6 @@ PlasmaExtras.Representation { // property is only atached to the delegate itself (the Loader in our case) visible: (!model.isInGroup || delegate.ListView.nextSection !== delegate.ListView.section) && delegate.ListView.nextSection !== "" // don't show after last item - && !removeAnimation.running } } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor