From d07383ba46b4f229bf23ed980517e9800a6c41a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Tue, 28 Nov 2023 20:09:44 +0800 Subject: [PATCH] update --- src/Qt5/imports/FluentUI/Controls/FluWindow.qml | 6 +++--- src/Qt6/imports/FluentUI/Controls/FluWindow.qml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Qt5/imports/FluentUI/Controls/FluWindow.qml b/src/Qt5/imports/FluentUI/Controls/FluWindow.qml index b6f0263e..f6a244b8 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluWindow.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluWindow.qml @@ -124,14 +124,14 @@ Window { left: parent.left right: parent.right } - sourceComponent: FluApp.useSystemAppBar ? undefined : com_app_bar + sourceComponent: window.useSystemAppBar ? undefined : com_app_bar } Component{ id:com_app_bar Item{ data: window.appBar height: { - if(FluApp.useSystemAppBar){ + if(window.useSystemAppBar){ return 0 } return window.fitsAppBarWindows ? 0 : childrenRect.height @@ -254,7 +254,7 @@ Window { id:loader_window_border anchors.fill: parent z:999 - sourceComponent: FluApp.useSystemAppBar ? undefined : com_window_border + sourceComponent: window.useSystemAppBar ? undefined : com_window_border } Component{ id:com_window_border diff --git a/src/Qt6/imports/FluentUI/Controls/FluWindow.qml b/src/Qt6/imports/FluentUI/Controls/FluWindow.qml index 9bdd6711..e017fb66 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluWindow.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluWindow.qml @@ -123,14 +123,14 @@ Window { left: parent.left right: parent.right } - sourceComponent: FluApp.useSystemAppBar ? undefined : com_app_bar + sourceComponent: window.useSystemAppBar ? undefined : com_app_bar } Component{ id:com_app_bar Item{ data: window.appBar height: { - if(FluApp.useSystemAppBar){ + if(window.useSystemAppBar){ return 0 } return window.fitsAppBarWindows ? 0 : childrenRect.height @@ -253,7 +253,7 @@ Window { id:loader_window_border anchors.fill: parent z:999 - sourceComponent: FluApp.useSystemAppBar ? undefined : com_window_border + sourceComponent: window.useSystemAppBar ? undefined : com_window_border } Component{ id:com_window_border