From cd1d46a26b923260b6c87cc93a0723b8166c609e Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Fri, 27 Aug 2021 19:45:41 +0200 Subject: [ui] refactor ui --- gui/components/LightLabel.qml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 gui/components/LightLabel.qml (limited to 'gui/components/LightLabel.qml') 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 +} -- cgit v1.2.3