From 96a56cf04d2260919c517e6dd80d61619c9ac096 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 8 Feb 2020 11:09:30 -0800 Subject: 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 --- mobile-widgets/qml/Settings.qml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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 @@ -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 } -- cgit v1.2.3-70-g09d2