mobile: add smaller, vertically dense template label

By default single line text has too much white space around it. This
smaller, denser label works well to more efficiently use screen real
estate, I think.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-05-11 06:41:11 -07:00
parent cdfcb7f896
commit 46d582ef0a
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,19 @@
// SPDX-License-Identifier: GPL-2.0
import QtQuick 2.11
import QtQuick.Controls 2.4
Label {
id: myLabel
color: subsurfaceTheme.textColor
font.pointSize: subsurfaceTheme.smallPointSize
lineHeight: 0.6
property alias colorBackground: myLabelBackground.color
background: Rectangle {
id: myLabelBackground
implicitWidth: myLabel.width
implicitHeight: myLabel.width
color: subsurfaceTheme.backgroundColor
}
}

View file

@ -5,6 +5,7 @@
<file>TemplateCheckBox.qml</file>
<file>TemplateComboBox.qml</file>
<file>TemplateLabel.qml</file>
<file>TemplateLabelSmall.qml</file>
<file>TemplateLine.qml</file>
<file>TemplateRadioButton.qml</file>
<file>TemplatePage.qml</file>