mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
mobile-widgets/qml: add TemplateComboBox
standard font-size as well as color are set in the template (but can be overwritten in the object) Using TemplateComboBox 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>
This commit is contained in:
parent
f44fa1aa27
commit
800973a920
2 changed files with 10 additions and 0 deletions
9
mobile-widgets/qml/TemplateComboBox.qml
Normal file
9
mobile-widgets/qml/TemplateComboBox.qml
Normal file
|
@ -0,0 +1,9 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
import QtQuick 2.11
|
||||
import QtQuick.Controls 2.4
|
||||
import QtQuick.Layouts 1.11
|
||||
|
||||
ComboBox {
|
||||
Layout.fillWidth: true
|
||||
font.pointSize: theme.regularPointSize
|
||||
}
|
|
@ -2,6 +2,7 @@
|
|||
<qresource prefix="/qml">
|
||||
<!-- ********** Templates ********** -->
|
||||
<file>TemplateCheckBox.qml</file>
|
||||
<file>TemplateComboBox.qml</file>
|
||||
<file>TemplateLabel.qml</file>
|
||||
<file>TemplateRadioButton.qml</file>
|
||||
<file>TemplateSection.qml</file>
|
||||
|
|
Loading…
Reference in a new issue