Merge lp:~nik90/ubuntu-ui-toolkit/panel-animation-speed into lp:ubuntu-ui-toolkit

Proposed by Nekhelesh Ramananthan
Status: Superseded
Proposed branch: lp:~nik90/ubuntu-ui-toolkit/panel-animation-speed
Merge into: lp:ubuntu-ui-toolkit
Diff against target: 37 lines (+8/-1)
2 files modified
components.api (+1/-0)
modules/Ubuntu/Components/Panel.qml (+7/-1)
To merge this branch: bzr merge lp:~nik90/ubuntu-ui-toolkit/panel-animation-speed
Reviewer Review Type Date Requested Status
Ubuntu SDK team Pending
Review via email: mp+223185@code.launchpad.net

Commit message

Adds a property to set the panel swipe animation speed.

Description of the change

Adds a property to set the panel swipe animation speed. By default it is set to UbuntuAnimation.FastDuration to not break compatibility with existing applications which use the panel.

To post a comment you must log in.
1033. By Nekhelesh Ramananthan

Changed property name to animationDuration

1034. By Nekhelesh Ramananthan

Move the new property over to the 1.1 API instead of 1.0

1035. By Nekhelesh Ramananthan

Added 1.1 change in the qmldir as well

Unmerged revisions

1035. By Nekhelesh Ramananthan

Added 1.1 change in the qmldir as well

1034. By Nekhelesh Ramananthan

Move the new property over to the 1.1 API instead of 1.0

1033. By Nekhelesh Ramananthan

Changed property name to animationDuration

1032. By Nekhelesh Ramananthan

Added property to set the speed of the panel swipe animation

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'components.api'
--- components.api 2014-05-28 18:08:33 +0000
+++ components.api 2014-06-15 21:47:41 +0000
@@ -256,6 +256,7 @@
256Item256Item
257 default property list<Object> contents257 default property list<Object> contents
258 property int align258 property int align
259 property int animateDuration
259 property bool opened260 property bool opened
260 function open()261 function open()
261 function close()262 function close()
262263
=== modified file 'modules/Ubuntu/Components/Panel.qml'
--- modules/Ubuntu/Components/Panel.qml 2014-04-25 12:53:58 +0000
+++ modules/Ubuntu/Components/Panel.qml 2014-06-15 21:47:41 +0000
@@ -171,6 +171,12 @@
171 */171 */
172 property int align: Qt.AlignBottom172 property int align: Qt.AlignBottom
173173
174 /* !
175 The property defines the swipe in/out speed of the panel.
176 The default value is \b UbuntuAnimation.FastDuration.
177 */
178 property int animateDuration: Toolkit.UbuntuAnimation.FastDuration
179
174 /*!180 /*!
175 When opened, the panel is visible, otherwise it is hidden.181 When opened, the panel is visible, otherwise it is hidden.
176 Use edge swipes to open/close the panel.182 Use edge swipes to open/close the panel.
@@ -402,7 +408,7 @@
402 The duration in milliseconds of sliding in or out transitions when opening, closing, and showing the hint.408 The duration in milliseconds of sliding in or out transitions when opening, closing, and showing the hint.
403 Default value: 250409 Default value: 250
404 */410 */
405 property real transitionDuration: panel.animate ? Toolkit.UbuntuAnimation.FastDuration : 0411 property real transitionDuration: panel.animate ? panel.animateDuration : 0
406412
407 property string previousState: ""413 property string previousState: ""
408 property int movingDelta414 property int movingDelta

Subscribers

People subscribed via source and target branches

to status/vote changes: