From 6c8dae5a042d17bdb961c3f494cea56a144a7e56 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 11 Feb 2019 19:34:49 +0100 Subject: mobile-widgets/qml: add TemplateSpinBox standard font-size are set in the template (but can be overwritten in the object) Using TemplateSpinBox allows central change of how spinBoxes are presented in the UI. Signed-off-by: Jan Iversen Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/TemplateSpinBox.qml | 8 ++++++++ mobile-widgets/qml/mobile-resources.qrc | 1 + 2 files changed, 9 insertions(+) create mode 100644 mobile-widgets/qml/TemplateSpinBox.qml (limited to 'mobile-widgets') diff --git a/mobile-widgets/qml/TemplateSpinBox.qml b/mobile-widgets/qml/TemplateSpinBox.qml new file mode 100644 index 000000000..d0b6469d2 --- /dev/null +++ b/mobile-widgets/qml/TemplateSpinBox.qml @@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 +import QtQuick 2.11 +import QtQuick.Controls 2.4 +import QtQuick.Layouts 1.11 + +SpinBox { + font.pointSize: subsurfaceTheme.regularPointSize; +} diff --git a/mobile-widgets/qml/mobile-resources.qrc b/mobile-widgets/qml/mobile-resources.qrc index 73b869369..1f948329d 100644 --- a/mobile-widgets/qml/mobile-resources.qrc +++ b/mobile-widgets/qml/mobile-resources.qrc @@ -3,6 +3,7 @@ TemplateLabel.qml TemplateSection.qml + TemplateSpinBox.qml About.qml -- cgit v1.2.3-70-g09d2