mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
46d582ef0a
By default single line text has too much white space around it. This smaller, denser label works well to more efficiently use screen real estate, I think. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
19 lines
422 B
QML
19 lines
422 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.smallPointSize
|
|
lineHeight: 0.6
|
|
property alias colorBackground: myLabelBackground.color
|
|
|
|
background: Rectangle {
|
|
id: myLabelBackground
|
|
implicitWidth: myLabel.width
|
|
implicitHeight: myLabel.width
|
|
color: subsurfaceTheme.backgroundColor
|
|
}
|
|
}
|
|
|