using multieffect from qt 6 instead of fastblur
This commit is contained in:
parent
90a34141b3
commit
de80d304bf
1 changed files with 8 additions and 8 deletions
|
@ -1,4 +1,5 @@
|
||||||
import QtQuick 2.13
|
import QtQuick 2.13
|
||||||
|
import QtQuick.Effects
|
||||||
import QtQuick.Controls 2.12 as Controls
|
import QtQuick.Controls 2.12 as Controls
|
||||||
/* import QtQuick.Window 2.15 */
|
/* import QtQuick.Window 2.15 */
|
||||||
import QtQuick.Layouts 1.15
|
import QtQuick.Layouts 1.15
|
||||||
|
@ -21,17 +22,16 @@ Item {
|
||||||
id: bg
|
id: bg
|
||||||
color: Kirigami.Theme.backgroundColor
|
color: Kirigami.Theme.backgroundColor
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
opacity: 0.90
|
||||||
}
|
}
|
||||||
|
|
||||||
FastBlur {
|
MultiEffect {
|
||||||
id: backgroundBlur
|
id: backgroundBlur
|
||||||
source: ShaderEffectSource {
|
source: bg
|
||||||
sourceItem: bg
|
anchors.fill: bg
|
||||||
sourceRect: Qt.rect(0, 0, backgroundBlur.width, backgroundBlur.height)
|
blur: 1.0
|
||||||
}
|
blurMultiplier: 20
|
||||||
anchors.fill: parent
|
blurEnabled: true
|
||||||
radius: 82
|
|
||||||
opacity: 0.60
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue