forked from qt-creator/qt-creator
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user