diff options
author | jan Iversen <jan@casacondor.com> | 2019-02-11 18:56:55 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-26 10:18:10 -0800 |
commit | 43b813d58e4a06c359b6c7a5838d50c9bd50b9f2 (patch) | |
tree | b25ac813f89464231816353db8cd7bd560608a5e | |
parent | 6c8dae5a042d17bdb961c3f494cea56a144a7e56 (diff) | |
download | subsurface-43b813d58e4a06c359b6c7a5838d50c9bd50b9f2.tar.gz |
mobile-widgets/qml: add TemplateRadioButton
standard font-size as well as color are set
in the template (but can be overwritten in
the object)
Using TemplateRadioButton 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>
-rw-r--r-- | mobile-widgets/qml/TemplateRadioButton.qml | 9 | ||||
-rw-r--r-- | mobile-widgets/qml/mobile-resources.qrc | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/mobile-widgets/qml/TemplateRadioButton.qml b/mobile-widgets/qml/TemplateRadioButton.qml new file mode 100644 index 000000000..d81b44526 --- /dev/null +++ b/mobile-widgets/qml/TemplateRadioButton.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 + +RadioButton { + Layout.fillWidth: true + font.pointSize: subsurfaceTheme.regularPointSize +} diff --git a/mobile-widgets/qml/mobile-resources.qrc b/mobile-widgets/qml/mobile-resources.qrc index 1f948329d..ad1d26a3c 100644 --- a/mobile-widgets/qml/mobile-resources.qrc +++ b/mobile-widgets/qml/mobile-resources.qrc @@ -2,6 +2,7 @@ <qresource prefix="/qml"> <!-- ********** Templates ********** --> <file>TemplateLabel.qml</file> + <file>TemplateRadioButton.qml</file> <file>TemplateSection.qml</file> <file>TemplateSpinBox.qml</file> |