on xenial help sign in
Polishing the rotation animation
commitb30d79157f24bea725bb1cc22df77543abb12819 authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateMon 9 Jun 2014, 18:29 (12 years ago) parent13e745b
2 files changed+6−3
qml/OrientedShell.qml+5−1 qml/Shell.qml+1−2
qml/OrientedShell.qml+5−1
@@ -19,7 +19,11 @@ import QtQuick.Window 2.0
1919import Ubuntu.Components 0.1
2020import "Components"
2121
22−Item {
22+Rectangle {
23+ // white background when dash is shown to better match Dashes own background, making for
24+ // a nicer rotation animation effect. If gives the illusion that the dash is always taking the entire
25+ // screen during the rotation.
26+ color: shell.dashShown ? "white" : "black"
2327 id: orientedShell
2428
2529 // this is only here to select the width / height of the window if not running fullscreen
qml/Shell.qml+1−2
@@ -56,14 +56,13 @@ FocusScope {
5656 return deviceOrientations;
5757 }
5858 }
59+ property bool dashShown: dash.shown && dash.available && underlay.visible
5960
6061 property real edgeSize: units.gu(2)
6162 property url defaultBackground: Qt.resolvedUrl(shell.width >= units.gu(60) ? "graphics/tablet_background.jpg" : "graphics/phone_background.jpg")
6263 property url background
6364 readonly property real panelHeight: panel.panelHeight
6465
65− property bool dashShown: dash.shown
66−
6766 property bool sideStageEnabled: shell.width >= units.gu(100)
6867
6968 function activateApplication(appId) {