summaryrefslogtreecommitdiffstats
path: root/examples/demos/hangman/qml/SplashScreen.qml
blob: 4e2e9721e8e89a52c7994e301b9d7aa8e0e14cdf (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
36
37
38
39
40
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import QtQuick

Rectangle {
    id: topLevel
    gradient: Gradient {
        GradientStop {
            position: 0.0
            color: "#87E0FD"
        }
        GradientStop {
            position: 0.4
            color: "#53CBF1"
        }
        GradientStop {
            position: 1.0
            color: "#05ABE0"
        }
    }

    Hangman {
        id: logo
        anchors.centerIn: parent
        height: 268
        width: 268
        errorCount: 9
    }

    Text {
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: logo.bottom
        anchors.topMargin: 10
        text: "Qt Hangman"
        font.family: "Helvetica"
        color: "white"
        font.pointSize: 24
    }
}