From 2acb3c34bdd61b623d00a1c9a02ea7de518f333e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Tue, 11 Apr 2023 23:43:20 +0800 Subject: [PATCH] update --- src/controls/FluIconButton.qml | 1 + src/controls/FluNavigationView.qml | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/controls/FluIconButton.qml b/src/controls/FluIconButton.qml index 38fba0e8..610f5400 100644 --- a/src/controls/FluIconButton.qml +++ b/src/controls/FluIconButton.qml @@ -38,6 +38,7 @@ FluControl { id:control width: 30 height: 30 + clip: true implicitWidth: width implicitHeight: height padding: 0 diff --git a/src/controls/FluNavigationView.qml b/src/controls/FluNavigationView.qml index 7304e13f..4bff317e 100644 --- a/src/controls/FluNavigationView.qml +++ b/src/controls/FluNavigationView.qml @@ -465,15 +465,13 @@ Item { id:btn_nav iconSource: FluentIcons.GlobalNavButton iconSize: 15 - Layout.preferredWidth: 40 + Layout.preferredWidth: d.isMinimal ? 40 : 0 Layout.preferredHeight: 40 - visible: opacity - opacity: d.isMinimal Layout.alignment: Qt.AlignVCenter onClicked: { d.enableNavigationPanel = !d.enableNavigationPanel } - Behavior on opacity{ + Behavior on Layout.preferredWidth{ NumberAnimation{ duration: 220 }