mobile-widgets/qml: add TemplateCheckBox
standard font-size as well as color are set in the template (but can be overwritten in the object) Using TemplateCheckBox 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
43b813d58e
commit
f44fa1aa27
9
mobile-widgets/qml/TemplateCheckBox.qml
Normal file
9
mobile-widgets/qml/TemplateCheckBox.qml
Normal file
@ -0,0 +1,9 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
import QtQuick 2.11
|
||||
import QtQuick.Controls 2.4
|
||||
import QtQuick.Layouts 1.11
|
||||
|
||||
CheckBox {
|
||||
Layout.fillWidth: true
|
||||
font.pointSize: subsurfaceTheme.regularPointSize
|
||||
}
|
||||
@ -1,6 +1,7 @@
|
||||
<RCC>
|
||||
<qresource prefix="/qml">
|
||||
<!-- ********** Templates ********** -->
|
||||
<file>TemplateCheckBox.qml</file>
|
||||
<file>TemplateLabel.qml</file>
|
||||
<file>TemplateRadioButton.qml</file>
|
||||
<file>TemplateSection.qml</file>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user