aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-06-29 17:23:10 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-06-29 17:23:10 +0200
commit2d858e000a4087de5f43352628d6bc41016fffff (patch)
tree5ace84d4a63a712d22748109492b681f82e3a9c0
parente024e6f2aca89be0b02f26df84a7eb59adb687fa (diff)
downloadRWA.Support.DesktopApp-2d858e000a4087de5f43352628d6bc41016fffff.tar.gz
RWA.Support.DesktopApp-2d858e000a4087de5f43352628d6bc41016fffff.tar.bz2
RWA.Support.DesktopApp-2d858e000a4087de5f43352628d6bc41016fffff.zip
Replace old StackView replace animations with more fitting ones; Make sidebar_drawer not too small
-rw-r--r--src/main.qml19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/main.qml b/src/main.qml
index f8e0df4..4a0706f 100644
--- a/src/main.qml
+++ b/src/main.qml
@@ -101,6 +101,23 @@ ApplicationWindow {
// Our Application will start with the following content:
initialItem: "scenes/Scene_placeholder.qml"
+
+ replaceEnter: Transition {
+ PropertyAnimation {
+ property: "opacity"
+ from: 0
+ to:1
+ duration: 100
+ }
+ }
+ replaceExit: Transition {
+ PropertyAnimation {
+ property: "opacity"
+ from: 1
+ to:0
+ duration: 100
+ }
+ }
}
ToastManager {
@@ -146,7 +163,7 @@ ApplicationWindow {
id: sidebar_drawer
y: top_menu_bar_frame.height
- width: !inPortrait ? Math.min(300, (window.width * 0.333)) : (window.width * 0.5)
+ width: !inPortrait ? Math.min(300, Math.max(200, window.width * 0.333)) : (window.width * 0.5)
height: window.height - top_menu_bar_frame.height
modal: inPortrait