Merge pull request #126 from mentalfl0w/dev

Fix acrylic effect for FluNavigationView CompactAndPanel mode.
This commit is contained in:
zhuzichu 2023-05-24 12:23:26 +08:00 committed by GitHub
commit 22d5dfbbc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 1778f85e05aad0b22cb9f86aca989f9dc78b3df7 Subproject commit d8ad4fda9c412436adace0dac1aa6241c9231deb

View File

@ -636,13 +636,13 @@ Item {
sourceItem:nav_swipe sourceItem:nav_swipe
anchors.fill: layout_list anchors.fill: layout_list
color: { 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 FluTheme.dark ? Qt.rgba(61/255,61/255,61/255,1) : Qt.rgba(243/255,243/255,243/255,1)
} }
return "transparent" return "transparent"
} }
visible: d.isMinimal visible: d.isMinimalAndPanel || d.isCompactAndPanel
rectX: layout_list.x rectX: d.isCompactAndPanel ? (layout_list.x - 50) : layout_list.x
rectY: layout_list.y - 60 rectY: layout_list.y - 60
acrylicOpacity:0.9 acrylicOpacity:0.9
} }