Animate copy share link button in share delegate
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Thu, 11 May 2023 06:10:47 +0000 (14:10 +0800)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 16 May 2023 13:16:11 +0000 (21:16 +0800)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/filedetails/ShareDelegate.qml

index 9c7d5a730528d10f793bcaad646d93eb370943f4..5efa922653103aaff1b38ed950fd0138216ffa0e 100644 (file)
@@ -209,6 +209,18 @@ GridLayout {
 
             onClicked: copyShareLink()
 
+            Behavior on bgColor {
+                ColorAnimation { duration: Style.shortAnimationDuration }
+            }
+
+            Behavior on bgNormalOpacity {
+                NumberAnimation { duration: Style.shortAnimationDuration }
+            }
+
+            Behavior on Layout.preferredWidth {
+                SmoothedAnimation { duration: Style.shortAnimationDuration }
+            }
+
             TextEdit {
                 id: clipboardHelper
                 visible: false