[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [ktouch/homescreen-ng] src/qml/common: Implement Enter/Exit Transitions For Popup Dialogs
From: Sebastian Gottfried <null () kde ! org>
Date: 2017-10-31 16:44:53
Message-ID: E1e9Zen-0003BG-UW () code ! kde ! org
[Download RAW message or body]
Git commit 831700722a1c5b9d52494916a34dec850aa5bd1f by Sebastian Gottfried.
Committed on 31/10/2017 at 16:44.
Pushed by gottfried into branch 'homescreen-ng'.
Implement Enter/Exit Transitions For Popup Dialogs
M +13 -0 src/qml/common/PopupDialog.qml
https://commits.kde.org/ktouch/831700722a1c5b9d52494916a34dec850aa5bd1f
diff --git a/src/qml/common/PopupDialog.qml b/src/qml/common/PopupDialog.qml
index cbb17de..8d332d2 100644
--- a/src/qml/common/PopupDialog.qml
+++ b/src/qml/common/PopupDialog.qml
@@ -79,6 +79,19 @@ Dialog {
}
}
=
+ enter: Transition {
+ // grow_fade_in
+ NumberAnimation { property: "scale"; from: 0.9; to: 1.0; easing.ty=
pe: Easing.OutQuint; duration: 220 }
+ NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; easing.=
type: Easing.OutCubic; duration: 150 }
+ NumberAnimation { target: dimOverlay; property: "opacity"; from: =
0.0; to: 1.0; easing.type: Easing.OutCubic; duration: 220 }
+ }
+
+ exit: Transition {
+ // shrink_fade_out
+ NumberAnimation { property: "scale"; from: 1.0; to: 0.9; easing.ty=
pe: Easing.OutQuint; duration: 220 }
+ NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; easing.=
type: Easing.OutCubic; duration: 150 }
+ NumberAnimation { target: dimOverlay; property: "opacity"; from: =
1.0; to: 0.0; easing.type: Easing.OutCubic; duration: 220 }
+ }
=
background: Rectangle {
color: dialogColorScheme.normalBackground
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic