mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-03 08:35:28 +08:00
Improve acrylic effect for example and FluNavigationview.
This commit is contained in:
@ -590,6 +590,7 @@ Item {
|
||||
d.enableNavigationPanel = false
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle{
|
||||
id:layout_list
|
||||
width: {
|
||||
@ -620,10 +621,10 @@ Item {
|
||||
border.color: FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,230/255,234/255,1)
|
||||
border.width: d.isMinimal || d.isCompactAndPanel ? 1 : 0
|
||||
color: {
|
||||
if(d.isMinimal || d.isCompactAndPanel){
|
||||
if(d.isMinimal){
|
||||
return FluTheme.dark ? Qt.rgba(61/255,61/255,61/255,1) : Qt.rgba(243/255,243/255,243/255,1)
|
||||
}
|
||||
return "#00000000"
|
||||
return "transparent"
|
||||
}
|
||||
|
||||
x: {
|
||||
@ -631,6 +632,20 @@ Item {
|
||||
return 0
|
||||
return d.isMinimalAndPanel ? 0 : -width
|
||||
}
|
||||
FluAcrylic {
|
||||
sourceItem:nav_swipe
|
||||
anchors.fill: layout_list
|
||||
color: {
|
||||
if(d.isMinimal){
|
||||
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
|
||||
rectY: layout_list.y - 60
|
||||
acrylicOpacity:0.9
|
||||
}
|
||||
Item{
|
||||
id:layout_header
|
||||
width: layout_list.width
|
||||
|
@ -30,6 +30,7 @@ Window {
|
||||
}
|
||||
return FluTheme.dark ? Qt.rgba(32/255,32/255,32/255,1) : Qt.rgba(243/255,243/255,243/255,1)
|
||||
}
|
||||
property alias backgroundOpacity: bg.opacity
|
||||
signal initArgument(var argument)
|
||||
id:window
|
||||
color:"transparent"
|
||||
@ -39,6 +40,7 @@ Window {
|
||||
initArgument(argument)
|
||||
}
|
||||
Rectangle{
|
||||
id: bg
|
||||
anchors.fill: parent
|
||||
color: backgroundColor
|
||||
Behavior on color{
|
||||
|
Reference in New Issue
Block a user