mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
bb13065a75
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>
18 lines
407 B
QML
18 lines
407 B
QML
// 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
|
|
property alias colorBackground: myLabelBackground.color
|
|
|
|
background: Rectangle {
|
|
id: myLabelBackground
|
|
implicitWidth: myLabel.width
|
|
implicitHeight: myLabel.width
|
|
color: subsurfaceTheme.backgroundColor
|
|
}
|
|
}
|
|
|