From f44fa1aa278463aa88910b50e846332fc7a833e1 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 11 Feb 2019 18:53:06 +0100 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/TemplateCheckBox.qml | 9 +++++++++ mobile-widgets/qml/mobile-resources.qrc | 1 + 2 files changed, 10 insertions(+) create mode 100644 mobile-widgets/qml/TemplateCheckBox.qml diff --git a/mobile-widgets/qml/TemplateCheckBox.qml b/mobile-widgets/qml/TemplateCheckBox.qml new file mode 100644 index 000000000..bc71dba8a --- /dev/null +++ b/mobile-widgets/qml/TemplateCheckBox.qml @@ -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 +} diff --git a/mobile-widgets/qml/mobile-resources.qrc b/mobile-widgets/qml/mobile-resources.qrc index ad1d26a3c..60760c0ae 100644 --- a/mobile-widgets/qml/mobile-resources.qrc +++ b/mobile-widgets/qml/mobile-resources.qrc @@ -1,6 +1,7 @@ + TemplateCheckBox.qml TemplateLabel.qml TemplateRadioButton.qml TemplateSection.qml