From 5ac0ba7463b37f03272d58fab753f4a27cf14e18 Mon Sep 17 00:00:00 2001 From: zhuzichu Date: Thu, 13 Jul 2023 12:18:38 +0800 Subject: [PATCH] update --- src/imports/FluentUI/Controls/FluAppBar.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/imports/FluentUI/Controls/FluAppBar.qml b/src/imports/FluentUI/Controls/FluAppBar.qml index 25280f2d..9d2a4582 100644 --- a/src/imports/FluentUI/Controls/FluAppBar.qml +++ b/src/imports/FluentUI/Controls/FluAppBar.qml @@ -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