Skip to content

Commit 0b6a5dd

Browse files
committed
qml: Base CoreText on Label
1 parent 5ba790f commit 0b6a5dd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/qml/controls/CoreText.qml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,20 @@
55
import QtQuick 2.15
66
import QtQuick.Controls 2.15
77

8-
Text {
8+
Label {
9+
id: label
910
property bool bold: false
1011
property bool wrap: true
12+
1113
color: enabled ? Theme.color.neutral9 : Theme.color.neutral4
14+
1215
font.family: "Inter"
1316
font.styleName: bold ? "Semi Bold" : "Regular"
1417
font.pixelSize: 13
18+
1519
horizontalAlignment: Text.AlignHCenter
1620
verticalAlignment: Text.AlignVCenter
21+
1722
wrapMode: wrap ? Text.WordWrap : Text.NoWrap
1823

1924
Behavior on color {

0 commit comments

Comments
 (0)