mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
619289074b
commit
be0468b706
1 changed files with 35 additions and 0 deletions
|
@ -245,6 +245,41 @@ Kirigami.ScrollablePage {
|
||||||
PrefDisplay.theme = subsurfaceTheme.currentTheme
|
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 {
|
Rectangle {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue