From 3b42b305183fa8330891a575436de234ae603c6f Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Wed, 24 May 2023 10:47:17 +0800 Subject: [PATCH] Fix acrylic effect for FluNavigationView CompactAndPanel mode. --- framelesshelper | 2 +- src/imports/FluentUI/Controls/FluNavigationView.qml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/framelesshelper b/framelesshelper index 1778f85e..d8ad4fda 160000 --- a/framelesshelper +++ b/framelesshelper @@ -1 +1 @@ -Subproject commit 1778f85e05aad0b22cb9f86aca989f9dc78b3df7 +Subproject commit d8ad4fda9c412436adace0dac1aa6241c9231deb diff --git a/src/imports/FluentUI/Controls/FluNavigationView.qml b/src/imports/FluentUI/Controls/FluNavigationView.qml index cf4c6f77..c4e74616 100644 --- a/src/imports/FluentUI/Controls/FluNavigationView.qml +++ b/src/imports/FluentUI/Controls/FluNavigationView.qml @@ -636,13 +636,13 @@ Item { sourceItem:nav_swipe anchors.fill: layout_list color: { - if(d.isMinimal){ + if(d.isMinimalAndPanel || d.isCompactAndPanel){ return FluTheme.dark ? Qt.rgba(61/255,61/255,61/255,1) : Qt.rgba(243/255,243/255,243/255,1) } return "transparent" } - visible: d.isMinimal - rectX: layout_list.x + visible: d.isMinimalAndPanel || d.isCompactAndPanel + rectX: d.isCompactAndPanel ? (layout_list.x - 50) : layout_list.x rectY: layout_list.y - 60 acrylicOpacity:0.9 }