This commit is contained in:
zhuzichu 2023-07-13 12:18:38 +08:00
parent 596457cf59
commit 5ac0ba7463

View File

@ -19,6 +19,9 @@ Rectangle{
property color closeNormalColor: Qt.rgba(0,0,0,0)
property color closeHoverColor: Qt.rgba(251/255,115/255,115/255,1)
property bool showDark: false
property bool showClose: true
property bool showMinimize: true
property bool showMaximize: true
property bool titleVisible: true
property bool isMac: FluTools.isMacos()
property color borerlessColor : FluTheme.dark ? FluTheme.primaryColor.lighter : FluTheme.primaryColor.dark
@ -96,7 +99,7 @@ Rectangle{
iconSize: 11
text:minimizeText
radius: 0
visible: !isMac
visible: !isMac && showMinimize
iconColor: root.textColor
color: hovered ? minimizeHoverColor : minimizeNormalColor
onClicked: minClickListener()
@ -108,7 +111,7 @@ Rectangle{
iconSource : d.isRestore ? FluentIcons.ChromeRestore : FluentIcons.ChromeMaximize
color: hovered ? maximizeHoverColor : maximizeNormalColor
Layout.alignment: Qt.AlignVCenter
visible: d.resizable && !isMac
visible: d.resizable && !isMac && showMaximize
radius: 0
iconColor: root.textColor
text:d.isRestore?restoreText:maximizeText
@ -122,7 +125,7 @@ Rectangle{
text:closeText
width: 40
height: 30
visible: !isMac
visible: !isMac && showClose
radius: 0
iconSize: 10
iconColor: hovered ? Qt.rgba(1,1,1,1) : root.textColor