mobile-widgets/qml: add background color property
Add property "colorBackground" to allow instances of templateLabel to have background color overwritten. Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0920adf40f
commit
bb13065a75
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user