Fix acrylic effect for FluNavigationView CompactAndPanel mode.

main
Mentalflow 2023-05-24 10:47:17 +08:00
parent 1b41bd1bcd
commit 3b42b30518
No known key found for this signature in database
GPG Key ID: 5AE68D4401A2EE71
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
} }