This commit is contained in:
zhuzichu 2023-07-27 18:13:50 +08:00
parent f531f5b138
commit 7ba60ee570
2 changed files with 8 additions and 4 deletions

View File

@ -10,9 +10,10 @@ FluScrollablePage{
title:"Acrylic"
RowLayout{
spacing: 10
Layout.topMargin: 20
FluText{
text:"tintColor->"
text:"tintColor:"
Layout.alignment: Qt.AlignVCenter
}
FluColorPicker{
@ -20,8 +21,9 @@ FluScrollablePage{
}
}
RowLayout{
spacing: 10
FluText{
text:"tintOpacity->"
text:"tintOpacity:"
Layout.alignment: Qt.AlignVCenter
}
FluSlider{
@ -30,8 +32,9 @@ FluScrollablePage{
}
}
RowLayout{
spacing: 10
FluText{
text:"blurRadius->"
text:"blurRadius:"
Layout.alignment: Qt.AlignVCenter
}
FluSlider{

View File

@ -10,12 +10,13 @@ FluItem {
property real noiseOpacity : 0.066
property alias target : effect_source.sourceItem
property int blurRadius: 32
property rect targetRect : Qt.rect(control.x, control.y, control.width, control.height)
ShaderEffectSource {
id: effect_source
anchors.fill: parent
visible: false
sourceRect: Qt.rect(control.x, control.y, control.width, control.height)
sourceRect: control.targetRect
}
FastBlur {