summaryrefslogtreecommitdiffstats
path: root/examples/demos/hangman/main.qml
blob: f5dd779a977b940d0c97f231e9f80a9ec9b8d12f (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
41
42
43
44
45
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import QtQuick
import QtQuick.Controls

ApplicationWindow {
    id: mainWindow
    height: 480
    width: 320
    visible: true;

    Rectangle {
        id: mainRect
        gradient: Gradient {
            GradientStop {
                position: 0.0
                color: "#87E0FD"
            }
            GradientStop {
                position: 0.4
                color: "#53CBF1"
            }
            GradientStop {
                position: 1.0
                color: "#05ABE0"
            }
        }
        anchors.fill: parent

        Loader {
            id: gameLoader
            asynchronous: true
            visible: status == Loader.Ready
            anchors.fill: parent
        }

        Loader {
            id: splashLoader
            anchors.fill: parent
            source: "qml/SplashScreen.qml"
            onLoaded: gameLoader.source = "qml/MainView.qml";
        }
    }
}