subsurface/mobile-widgets/qml/TemplateLabel.qml

20 lines
424 B
QML
Raw Normal View History

// SPDX-License-Identifier: GPL-2.0
import QtQuick 2.11
import QtQuick.Controls 2.4
Label {
id: myLabel
color: subsurfaceTheme.textColor
font.pointSize: subsurfaceTheme.regularPointSize
lineHeight: 0.8
property alias colorBackground: myLabelBackground.color
background: Rectangle {
id: myLabelBackground
implicitWidth: myLabel.width
implicitHeight: myLabel.width
color: subsurfaceTheme.backgroundColor
}
}