diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-09-22 18:01:45 -0700 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2018-09-25 15:58:17 +0200 |
commit | be0468b7061f86402e0ce80d03bcf1f39b199f14 (patch) | |
tree | c56cae4261908c9ec0d1e14ec44b2237e11553dd /mobile-widgets | |
parent | 619289074ba33f00bb19c5fe62c2c72782d5b997 (diff) | |
download | subsurface-be0468b7061f86402e0ce80d03bcf1f39b199f14.tar.gz |
QML UI: add settings for scale factor
The visual feels backwards as the selected one is grayed out...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r-- | mobile-widgets/qml/Settings.qml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index 7c2beceaf..37c514803 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -245,6 +245,41 @@ Kirigami.ScrollablePage { PrefDisplay.theme = subsurfaceTheme.currentTheme } } + Kirigami.Heading { + text: qsTr("Scaling") + color: subsurfaceTheme.textColor + level: 4 + Layout.topMargin: Kirigami.Units.largeSpacing + Layout.bottomMargin: Kirigami.Units.largeSpacing / 2 + Layout.columnSpan: 3 + } + Row { + Layout.preferredWidth: gridWidth * 0.8 + Layout.columnSpan: 3 + spacing: Kirigami.Units.largeSpacing + SsrfButton { + text: qsTr("smaller") + enabled: PrefDisplay.mobile_scale !== 0.85 + onClicked: { + PrefDisplay.mobile_scale = 0.85 + } + } + SsrfButton { + text: qsTr("regular") + enabled: PrefDisplay.mobile_scale !== 1.0 + onClicked: { + PrefDisplay.mobile_scale = 1.0 + } + } + SsrfButton { + text: qsTr("larger") + enabled: PrefDisplay.mobile_scale !== 1.15 + onClicked: { + PrefDisplay.mobile_scale = 1.15 + } + } + } + } Rectangle { |