aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickitem2/data/paletteAllocate.qml
blob: 6c959ddbcb3219fc677eabb69db3d46d2e253903 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import QtQuick

Item {
    id: root
    width: 300
    height: 300
    visible: true

    palette.active.base: "blue"
    palette.inactive.base: "red"
    palette.disabled.base: "gray"

    Rectangle {
        id: background
        objectName: "background"

        anchors.centerIn: parent
        width: parent.width / 2
        height: parent.height / 2

        color: root.palette.base

        Rectangle {
            id: foreground
            objectName: "foreground"

            anchors.centerIn: parent
            width: parent.width / 2
            height: parent.height / 2

            color: root.palette.base
            border.color: "black"
        }
    }
}