StudioWelcome: Pseudo destaturation

Qt 6 does not have the QtGraphicalEffects module anymore.

Change-Id: Idb4e9d141a65b31ad68058d95ffa519bd65f5c4c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2021-05-04 16:08:36 +02:00
parent f9e4370c4d
commit 27a8cb376e

View File

@@ -24,14 +24,18 @@
****************************************************************************/ ****************************************************************************/
import QtQuick 2.0 import QtQuick 2.0
import QtGraphicalEffects 1.0
Item { Item {
id: root id: root
property real desaturation: 1.0 property real desaturation: 1.0
layer.enabled: true
layer.effect: Desaturate { Rectangle {
desaturation: root.desaturation z: 10
anchors.fill: parent
color: "#2d2e30"
anchors.margins: -16
opacity: root.desaturation * 0.6
} }
} }