commit
3e5d64f086
|
@ -7,26 +7,32 @@ 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 alias radius:bg.radius
|
||||||
|
property alias blurRadius: blur.radius
|
||||||
property var sourceItem: control.parent
|
property var sourceItem: control.parent
|
||||||
|
FluRectangle{
|
||||||
Rectangle {
|
id:bg
|
||||||
id: rect
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: "white"
|
radius: [8,8,8,8]
|
||||||
opacity: 0.1
|
|
||||||
}
|
|
||||||
|
|
||||||
ShaderEffectSource {
|
ShaderEffectSource {
|
||||||
id: effect_source
|
id: effect_source
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
sourceItem: control.sourceItem
|
sourceItem: control.sourceItem
|
||||||
sourceRect: Qt.rect(control.x, control.y, control.width, control.height)
|
sourceRect: Qt.rect(control.x, control.y, control.width, control.height)
|
||||||
}
|
Rectangle {
|
||||||
|
id: rect
|
||||||
|
anchors.fill: parent
|
||||||
|
color: "white"
|
||||||
|
opacity: 0.5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
FastBlur {
|
FastBlur {
|
||||||
radius: control.radius
|
id:blur
|
||||||
anchors.fill: effect_source
|
radius: 50
|
||||||
source: effect_source
|
anchors.fill: effect_source
|
||||||
|
source: effect_source
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue