summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2021-05-04 16:08:36 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2021-06-04 12:31:57 +0000
commit27a8cb376ea2e54f807567285455714cad5891f5 (patch)
treea0c146842e49bac0ce16c86320fc563d61474e4a
parentf9e4370c4d9b5ef7a68e80279448c4d634782b5a (diff)
downloadqt-creator-27a8cb376ea2e54f807567285455714cad5891f5.tar.gz
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>
-rw-r--r--src/plugins/studiowelcome/qml/welcomepage/SaturationEffect.qml12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/plugins/studiowelcome/qml/welcomepage/SaturationEffect.qml b/src/plugins/studiowelcome/qml/welcomepage/SaturationEffect.qml
index 4f85e681a4..32d2448d6e 100644
--- a/src/plugins/studiowelcome/qml/welcomepage/SaturationEffect.qml
+++ b/src/plugins/studiowelcome/qml/welcomepage/SaturationEffect.qml
@@ -24,14 +24,18 @@
****************************************************************************/
import QtQuick 2.0
-import QtGraphicalEffects 1.0
Item {
id: root
property real desaturation: 1.0
- layer.enabled: true
- layer.effect: Desaturate {
- desaturation: root.desaturation
+
+ Rectangle {
+ z: 10
+ anchors.fill: parent
+ color: "#2d2e30"
+ anchors.margins: -16
+
+ opacity: root.desaturation * 0.6
}
}