mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
99cce7e807
commit
6c8dae5a04
2 changed files with 9 additions and 0 deletions
8
mobile-widgets/qml/TemplateSpinBox.qml
Normal file
8
mobile-widgets/qml/TemplateSpinBox.qml
Normal file
|
@ -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;
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
<!-- ********** Templates ********** -->
|
||||
<file>TemplateLabel.qml</file>
|
||||
<file>TemplateSection.qml</file>
|
||||
<file>TemplateSpinBox.qml</file>
|
||||
|
||||
<!-- ********** qml ********** -->
|
||||
<file>About.qml</file>
|
||||
|
|
Loading…
Reference in a new issue