aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/TemplateSpinBox.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-02-11 19:34:49 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-26 10:18:09 -0800
commit6c8dae5a042d17bdb961c3f494cea56a144a7e56 (patch)
tree334818c72deb665b25c7d5bf6b8f8298a1ac5dde /mobile-widgets/qml/TemplateSpinBox.qml
parent99cce7e807f672426328ba3ddf4fad9d69e7e1a7 (diff)
downloadsubsurface-6c8dae5a042d17bdb961c3f494cea56a144a7e56.tar.gz
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 <jani@apache.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/TemplateSpinBox.qml')
-rw-r--r--mobile-widgets/qml/TemplateSpinBox.qml8
1 files changed, 8 insertions, 0 deletions
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;
+}