diff options
Diffstat (limited to 'mobile-widgets/qml/TemplateLabel.qml')
-rw-r--r-- | mobile-widgets/qml/TemplateLabel.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mobile-widgets/qml/TemplateLabel.qml b/mobile-widgets/qml/TemplateLabel.qml index d022e2256..4754a8121 100644 --- a/mobile-widgets/qml/TemplateLabel.qml +++ b/mobile-widgets/qml/TemplateLabel.qml @@ -3,7 +3,16 @@ import QtQuick 2.11 import QtQuick.Controls 2.4 Label { + id: myLabel color: subsurfaceTheme.textColor font.pointSize: subsurfaceTheme.regularPointSize + property alias colorBackground: myLabelBackground.color + + background: Rectangle { + id: myLabelBackground + implicitWidth: myLabel.width + implicitHeight: myLabel.width + color: subsurfaceTheme.backgroundColor + } } |