C

Qt Quick Ultralite swipe_game Demo

// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial

import QtQuick 2.0
import StyleModule 1.0

/*
    This component is used as root element for the different views and provides common elements
*/
Item {
    id: root

    property alias backgroundColor: circleBackground.color

    implicitHeight: Style.appSize
    implicitWidth: Style.appSize

    Rectangle {
        id: circleFrame

        anchors.centerIn: parent
        width: Style.appSize
        height: width
        radius: width * 0.5
        color: Style.colorLines

        Rectangle {
            id: circleBackground

            anchors {
                fill: parent
                margins: Style.lineSize
            }
            radius: width * 0.5
            color: Style.colorPageBackground
        }
    }
}