This commit is contained in:
zhuzichu
2024-01-02 14:53:53 +08:00
parent 0cad207359
commit 0241ecd07f
5 changed files with 19 additions and 19 deletions

View File

@ -39,7 +39,7 @@ Window {
property bool showMaximize: true
property bool showStayTop: true
property bool autoMaximize: false
property bool useSystemAppBar: FluApp.useSystemAppBar
property bool useSystemAppBar
property color resizeBorderColor: {
if(window.active){
return _accentColor
@ -70,9 +70,10 @@ Window {
_realHeight = height
_realWidth = width
moveWindowToDesktopCenter()
loader_frameless_helper.sourceComponent = Qt.binding(function(){
return window.useSystemAppBar ? undefined : com_frameless
})
useSystemAppBar = FluApp.useSystemAppBar
if(!useSystemAppBar){
loader_frameless_helper.sourceComponent = com_frameless
}
lifecycle.onCompleted(window)
initArgument(argument)
if(window.autoMaximize){