subsurface/mobile-widgets/qml/TemplateLabelSmall.qml
Dirk Hohndel 46d582ef0a 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>
2020-05-14 12:57:08 -07:00

19 lines
422 B
QML

// 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
}
}