From ef6de379423633a1bb4888f4294d48d19109ac49 Mon Sep 17 00:00:00 2001 From: qiqi Date: Mon, 27 Mar 2023 17:35:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=AB=98=E4=BA=AE=E5=9B=BE?= =?UTF-8?q?=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qml/AppControls2/RoundButton.qml | 3 ++- qml/main.qml | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/qml/AppControls2/RoundButton.qml b/qml/AppControls2/RoundButton.qml index 71401ec..e2220f7 100644 --- a/qml/AppControls2/RoundButton.qml +++ b/qml/AppControls2/RoundButton.qml @@ -5,6 +5,7 @@ MouseArea { id: buttonMouseArea hoverEnabled: true property string buttonIcon: "" + property bool highlight: false StyleBackground { useStyleTransparent: false @@ -18,6 +19,6 @@ MouseArea { anchors.centerIn: parent width: 16; height: width source: buttonIcon - highLight: mainWindow.isFullScreen + highLight: buttonMouseArea.highlight } } diff --git a/qml/main.qml b/qml/main.qml index 4fb96cd..b333a21 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -74,10 +74,8 @@ Item { anchors.left: parent.left anchors.bottom: parent.bottom radius: 12 + state: mainWindow.isFullScreen ? "fullScreen" : "normalScreen" - Component.onCompleted: { - state = mainWindow.isFullScreen ? "fullScreen" : "normalScreen" - } onHeightChanged: { if (root.transparency <= 0.6 && root.onComlpeted) { mainWindow.changeWindowBlurRegion(0, root.height - height, width, height)