mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile/settings: add UI for single column preference
This is placed in the Advanced section as I expect this to be rather unusual for people to enable. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9069f3364d
commit
96a56cf04d
1 changed files with 29 additions and 0 deletions
|
@ -615,6 +615,35 @@ TemplatePage {
|
|||
}
|
||||
}
|
||||
}
|
||||
TemplateLine {
|
||||
visible: sectionAdvanced.isExpanded
|
||||
}
|
||||
GridLayout {
|
||||
id: display
|
||||
visible: sectionAdvanced.isExpanded
|
||||
columns: 2
|
||||
TemplateLabel {
|
||||
text: qsTr("Display")
|
||||
font.pointSize: subsurfaceTheme.headingPointSize
|
||||
font.weight: Font.Light
|
||||
Layout.topMargin: Kirigami.Units.largeSpacing
|
||||
Layout.bottomMargin: Kirigami.Units.largeSpacing / 2
|
||||
Layout.columnSpan: 2
|
||||
}
|
||||
TemplateLabel {
|
||||
text: qsTr("Show only one column in Portrait mode")
|
||||
Layout.preferredWidth: gridWidth * 0.75
|
||||
}
|
||||
SsrfSwitch {
|
||||
id: singleColumnButton
|
||||
checked: PrefDisplay.singleColumnPortrait
|
||||
Layout.preferredWidth: gridWidth * 0.25
|
||||
onClicked: {
|
||||
PrefDisplay.singleColumnPortrait = checked
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TemplateLine {
|
||||
visible: sectionAdvanced.isExpanded
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue