aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/studiowelcome/qml/welcomepage/SaturationEffect.qml
blob: 078cfc3c3efbece659b8203eabe846fa0cf5a748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

import QtQuick 2.0

Item {
    id: root

    property real desaturation: 1.0

    Rectangle {
        z: 10
        anchors.fill: parent
        color: "#2d2e30"
        anchors.margins: -16

        opacity: root.desaturation * 0.6
    }
}