mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
fb7920ef58
commit
3aa43f3ea5
8 changed files with 24 additions and 24 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue