aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/Settings.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2019-02-11 17:09:51 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-03 17:29:58 -0800
commit3aa43f3ea5a64afdda934fb9a8ff52deecd71db6 (patch)
treeefb53f94c4fdc23f2c1d06455c6dcb8688ae7e87 /mobile-widgets/qml/Settings.qml
parentfb7920ef581f4efb452ab8242166dc211dbb62a8 (diff)
downloadsubsurface-3aa43f3ea5a64afdda934fb9a8ff52deecd71db6.tar.gz
mobile-widgets/qml: add TemplateButton
Do "git mv SsrfButton TemplateButton", and search/replace all uses. The general idea of the templates are to secure common layout, but also to isolate the Kirigami parts (slowly) in the templates. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'mobile-widgets/qml/Settings.qml')
-rw-r--r--mobile-widgets/qml/Settings.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml
index a9cd4131c..af64b58be 100644
--- a/mobile-widgets/qml/Settings.qml
+++ b/mobile-widgets/qml/Settings.qml
@@ -50,7 +50,7 @@ Kirigami.ScrollablePage {
text: Backend.cloud_verification_status === Enums.CS_NOCLOUD ? qsTr("Not applicable") : PrefCloudStorage.cloud_storage_email
Layout.preferredWidth: gridWidth * 0.60
}
- SsrfButton {
+ TemplateButton {
id: changeCloudSettings
text: qsTr("Change")
onClicked: {
@@ -120,7 +120,7 @@ Kirigami.ScrollablePage {
text: qsTr("Forget remembered dive computers")
Layout.preferredWidth: gridWidth * 0.75
}
- SsrfButton {
+ TemplateButton {
id: forgetDCButton
text: qsTr("Forget")
enabled: PrefDiveComputer.vendor1 !== ""
@@ -310,21 +310,21 @@ Kirigami.ScrollablePage {
Layout.preferredWidth: gridWidth * 0.8
Layout.columnSpan: 3
spacing: Kirigami.Units.largeSpacing
- SsrfButton {
+ TemplateButton {
text: qsTr("smaller")
enabled: ThemeNew.currentScale !== 0.85
onClicked: {
ThemeNew.currentScale = 0.85
}
}
- SsrfButton {
+ TemplateButton {
text: qsTr("regular")
enabled: ThemeNew.currentScale !== 1.0
onClicked: {
ThemeNew.currentScale = 1.0
}
}
- SsrfButton {
+ TemplateButton {
text: qsTr("larger")
enabled: ThemeNew.currentScale !== 1.15
onClicked: {