blob: 03f99a7bccf9162b7e1e06eca46abee14ba2818c (
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
|
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
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"
}
}
|