summaryrefslogtreecommitdiff
path: root/gui/components/LightLabel.qml
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-08-27 19:45:41 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-11-23 21:50:58 +0100
commitcd1d46a26b923260b6c87cc93a0723b8166c609e (patch)
tree81d0fafeaeda6f5d72ec03f589cf8560cea32ed8 /gui/components/LightLabel.qml
parent76585f828a36c08614df84f43d64e20fb0e7a425 (diff)
[ui] refactor ui
Diffstat (limited to 'gui/components/LightLabel.qml')
-rw-r--r--gui/components/LightLabel.qml19
1 files changed, 19 insertions, 0 deletions
diff --git a/gui/components/LightLabel.qml b/gui/components/LightLabel.qml
new file mode 100644
index 0000000..78f82b6
--- /dev/null
+++ b/gui/components/LightLabel.qml
@@ -0,0 +1,19 @@
+import QtQuick 2.5
+import QtQuick.Controls 2.14
+import "../themes/themes.js" as Theme
+
+Text {
+ font.pixelSize: Theme.fontSize - 2
+ font.family: Theme.fontFamily
+ color: Theme.fontColor
+ width: parent.width * 0.80
+ text: parent.text
+
+ horizontalAlignment: Text.AlignHCenter
+ verticalAlignment: Text.AlignVCenter
+ //lineHeightMode: Text.FixedHeight
+ wrapMode: Text.Wrap
+
+ Accessible.role: Accessible.StaticText
+ Accessible.name: text
+}