mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
mobile-widgets/qml: add TemplateLabel
standard font-size as well as color are set in the template (but can be overwritten in the object) Using TemplateLabel allows central change of how labels are presented in the UI. Signed-off-by: Jan Iversen <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8468d28a41
commit
99cce7e807
2 changed files with 10 additions and 0 deletions
9
mobile-widgets/qml/TemplateLabel.qml
Normal file
9
mobile-widgets/qml/TemplateLabel.qml
Normal file
|
@ -0,0 +1,9 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
import QtQuick 2.11
|
||||
import QtQuick.Controls 2.4
|
||||
|
||||
Label {
|
||||
color: subsurfaceTheme.textColor
|
||||
font.pointSize: subsurfaceTheme.regularPointSize
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
<RCC>
|
||||
<qresource prefix="/qml">
|
||||
<!-- ********** Templates ********** -->
|
||||
<file>TemplateLabel.qml</file>
|
||||
<file>TemplateSection.qml</file>
|
||||
|
||||
<!-- ********** qml ********** -->
|
||||
|
|
Loading…
Reference in a new issue