diff --git a/mobile-widgets/qml/TemplateLabelSmall.qml b/mobile-widgets/qml/TemplateLabelSmall.qml new file mode 100644 index 000000000..af8c23d9e --- /dev/null +++ b/mobile-widgets/qml/TemplateLabelSmall.qml @@ -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 + } +} + diff --git a/mobile-widgets/qml/mobile-resources.qrc b/mobile-widgets/qml/mobile-resources.qrc index c76e4b7de..4462ab1c8 100644 --- a/mobile-widgets/qml/mobile-resources.qrc +++ b/mobile-widgets/qml/mobile-resources.qrc @@ -5,6 +5,7 @@ TemplateCheckBox.qml TemplateComboBox.qml TemplateLabel.qml + TemplateLabelSmall.qml TemplateLine.qml TemplateRadioButton.qml TemplatePage.qml