2022-06-03 11:26:02 +00:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2021-07-26 10:42:14 +00:00
|
|
|
|
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: borderRect
|
|
|
|
color: "transparent"
|
|
|
|
border.color: "white"
|
|
|
|
width: scoreText.contentWidth + (topLevel.globalMargin * 2)
|
|
|
|
radius: 10
|
|
|
|
Label {
|
|
|
|
id: scoreText
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.topMargin: topLevel.globalMargin
|
|
|
|
anchors.bottomMargin: topLevel.globalMargin
|
|
|
|
anchors.rightMargin: topLevel.globalMargin
|
|
|
|
anchors.leftMargin: topLevel.globalMargin
|
|
|
|
horizontalAlignment: Text.AlignRight
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
font.pixelSize: parent.height
|
|
|
|
font.family: "Helvetica"
|
|
|
|
font.weight: Font.Light
|
|
|
|
text: applicationData.score
|
|
|
|
color: "white"
|
|
|
|
}
|
|
|
|
}
|