main
朱子楚\zhuzi 2023-05-14 16:54:13 +08:00
parent 308e2407c3
commit 87a1e4744c
1 changed files with 3 additions and 2 deletions

View File

@ -7,13 +7,14 @@ Item {
property alias color: rect.color property alias color: rect.color
property alias acrylicOpacity: rect.opacity property alias acrylicOpacity: rect.opacity
property int radius: 50
property var sourceItem: control.parent property var sourceItem: control.parent
Rectangle { Rectangle {
id: rect id: rect
anchors.fill: parent anchors.fill: parent
color: "white" color: "white"
opacity: 0.05 opacity: 0.1
} }
ShaderEffectSource { ShaderEffectSource {
@ -24,7 +25,7 @@ Item {
} }
FastBlur { FastBlur {
radius: 20 radius: control.radius
anchors.fill: effect_source anchors.fill: effect_source
source: effect_source source: effect_source
} }