diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-02-08 11:09:30 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-08 13:58:54 -0800 |
commit | 96a56cf04d2260919c517e6dd80d61619c9ac096 (patch) | |
tree | 0a8238e5a7c965c85bb881add974c377b3235643 /mobile-widgets/qml | |
parent | 9069f3364d971c4387fd6fa048f73323240bccf9 (diff) | |
download | subsurface-96a56cf04d2260919c517e6dd80d61619c9ac096.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/Settings.qml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index 88f8c93de..a801fff80 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -619,6 +619,35 @@ TemplatePage { 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 + } + GridLayout { id: developer visible: sectionAdvanced.isExpanded columns: 2 |