This commit is contained in:
朱子楚
2023-03-09 01:18:46 +08:00
parent 5df0efbc58
commit d43e661388
8 changed files with 124 additions and 3 deletions

View File

@ -13,13 +13,15 @@ Rectangle{
return borerlessColor
return Window.window.active ? borerlessColor : Qt.lighter(borerlessColor,1.1)
}
height: 50
property bool isMacos: Qt.platform.os === "osx"
height: isMacos ? 0 : 50
width: {
if(parent==null)
return 200
return parent.width
}
z: 65535
clip: true
property string title: "标题"
property color textColor: FluTheme.isDark ? "#000000" : "#FFFFFF"
property bool showDark: false

View File

@ -21,7 +21,12 @@ Item {
property int minimumHeight
property int maximumHeight
property bool isMacos: Qt.platform.os === "osx"
property int borderless:{
if(isMacos){
return 0
}
if(window === null)
return 4
if(Window.window.visibility === Window.Maximized){