diff --git a/src/Qt5/imports/FluentUI/Controls/FluWindow.qml b/src/Qt5/imports/FluentUI/Controls/FluWindow.qml index d7c19bd0..94fd29eb 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluWindow.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluWindow.qml @@ -201,7 +201,7 @@ Window { id:layout_content anchors.fill: parent anchors.margins: { - if(FluTools.isWin()){ + if(FluTools.isWin() && !window.useSystemAppBar){ return window.visibility === Window.Maximized ? 8 : 0 } return 0 diff --git a/src/Qt6/imports/FluentUI/Controls/FluWindow.qml b/src/Qt6/imports/FluentUI/Controls/FluWindow.qml index 15d72689..7b817bb8 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluWindow.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluWindow.qml @@ -200,7 +200,7 @@ Window { id:layout_content anchors.fill: parent anchors.margins: { - if(FluTools.isWin()){ + if(FluTools.isWin() && !window.useSystemAppBar){ return window.visibility === Window.Maximized ? 8 : 0 } return 0