mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue