From 2d858e000a4087de5f43352628d6bc41016fffff Mon Sep 17 00:00:00 2001 From: Daniel Teichmann Date: Tue, 29 Jun 2021 17:23:10 +0200 Subject: Replace old StackView replace animations with more fitting ones; Make sidebar_drawer not too small --- src/main.qml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3