[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-desktop] toolboxes/desktoptoolbox/contents/ui: Avoid text rendering outside toolbox frame wh
From:       David Edmundson <kde () davidedmundson ! co ! uk>
Date:       2014-09-29 19:43:51
Message-ID: E1XYgrP-0004TH-Ry () scm ! kde ! org
[Download RAW message or body]

Git commit 74808cbdbcfa803c7ad962c4dd55d86d1285484d by David Edmundson.
Committed on 29/09/2014 at 17:17.
Pushed by davidedmundson into branch 'master'.

Avoid text rendering outside toolbox frame when dragging from corner -> edge

REVIEW: 120426

M  +17   -0    toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml

http://commits.kde.org/plasma-desktop/74808cbdbcfa803c7ad962c4dd55d86d1285484d

diff --git a/toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml \
b/toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml index 35f35f1..8266643 \
                100644
--- a/toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml
+++ b/toolboxes/desktoptoolbox/contents/ui/ToolBoxButton.qml
@@ -192,6 +192,23 @@ Item {
             id: activityName
             opacity: isCorner ? 0 : 1
             text: toolBoxButton.text
+            Behavior on opacity {
+                //only have this animation when going from hidden -> shown
+                enabled: activityName.opacity == 0
+
+                SequentialAnimation {
+                    //pause to allow the toolbox frame to resize
+                    //otherwise we see the text overflow the box
+                    //whilst that animates
+                    PauseAnimation {
+                        duration: units.longDuration
+                    }
+                    NumberAnimation {
+                        duration: units.shortDuration
+                        easing.type: Easing.InOutExpo
+                    }
+                }
+            }
         }
     }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic