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.Effects
|
||||
import QtQuick.Controls 2.12 as Controls
|
||||
/* import QtQuick.Window 2.15 */
|
||||
import QtQuick.Layouts 1.15
|
||||
|
@ -21,17 +22,16 @@ Item {
|
|||
id: bg
|
||||
color: Kirigami.Theme.backgroundColor
|
||||
anchors.fill: parent
|
||||
opacity: 0.90
|
||||
}
|
||||
|
||||
FastBlur {
|
||||
MultiEffect {
|
||||
id: backgroundBlur
|
||||
source: ShaderEffectSource {
|
||||
sourceItem: bg
|
||||
sourceRect: Qt.rect(0, 0, backgroundBlur.width, backgroundBlur.height)
|
||||
}
|
||||
anchors.fill: parent
|
||||
radius: 82
|
||||
opacity: 0.60
|
||||
source: bg
|
||||
anchors.fill: bg
|
||||
blur: 1.0
|
||||
blurMultiplier: 20
|
||||
blurEnabled: true
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue