diff options
-rw-r--r-- | qml/MainWindow.qml | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/qml/MainWindow.qml b/qml/MainWindow.qml index c1f4e54..686dd87 100644 --- a/qml/MainWindow.qml +++ b/qml/MainWindow.qml @@ -275,10 +275,16 @@ Item { InputPanel { id: inputPanel z: 99 - y: root.height - anchors.left: root.left - anchors.right: root.right - visible: y < root.height + x: root.portraitMode ? + (globalSettings.rotationSelected ? + inputPanel.height + root.height : -inputPanel.height - root.height) : + 0 + y: root.portraitMode ? + (globalSettings.rotationSelected ? inputPanel.height : inputPanel.height) : + (globalSettings.rotationSelected ? -root.height : root.height) + width: root.portraitMode ? window.height : window.width + rotation: root.rotation + property real alignmentWorkaround: height * 0.1 onActiveChanged: { if (!active) applicationLoader.anchors.topMargin = 0; @@ -296,7 +302,14 @@ Item { when: inputPanel.active PropertyChanges { target: inputPanel - y: root.height - inputPanel.height + x: root.portraitMode ? + (globalSettings.rotationSelected ? + root.height - inputPanel.height * 2 - inputPanel.alignmentWorkaround : + -inputPanel.height - inputPanel.alignmentWorkaround) : + 0 + y: root.portraitMode ? + inputPanel.height + inputPanel.alignmentWorkaround : + (globalSettings.rotationSelected ? 0 : root.height - inputPanel.height) } } @@ -306,6 +319,11 @@ Item { reversible: true ParallelAnimation { NumberAnimation { + properties: "x" + duration: 250 + easing.type: Easing.InOutQuad + } + NumberAnimation { properties: "y" duration: 250 easing.type: Easing.InOutQuad |