mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
mobile-widgets/qml: move cloudSettings to general section.
move gridlayout cloudSettings to TemplateSection general, without changing anything (apart from adding a visible: attribute and removing the rectangle used to create a line). Signed-off-by: jan Iversen <jan@casacondor.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
12631ef2bb
commit
bf7464788e
1 changed files with 38 additions and 44 deletions
|
@ -28,55 +28,49 @@ Kirigami.ScrollablePage {
|
||||||
title: qsTr("General settings")
|
title: qsTr("General settings")
|
||||||
isExpanded: true
|
isExpanded: true
|
||||||
|
|
||||||
}
|
GridLayout {
|
||||||
|
id: cloudSetting
|
||||||
|
visible: sectionGeneral.isExpanded
|
||||||
|
columns: 3
|
||||||
|
|
||||||
GridLayout {
|
TemplateLabel {
|
||||||
id: cloudSetting
|
text: qsTr("Cloud status")
|
||||||
columns: 3
|
font.pointSize: subsurfaceTheme.headingPointSize
|
||||||
|
font.weight: Font.Light
|
||||||
TemplateLabel {
|
Layout.topMargin: Kirigami.Units.largeSpacing
|
||||||
text: qsTr("Cloud status")
|
Layout.bottomMargin: Kirigami.Units.largeSpacing / 2
|
||||||
font.pointSize: subsurfaceTheme.headingPointSize
|
Layout.columnSpan: 3
|
||||||
font.weight: Font.Light
|
}
|
||||||
Layout.topMargin: Kirigami.Units.largeSpacing
|
TemplateLabel {
|
||||||
Layout.bottomMargin: Kirigami.Units.largeSpacing / 2
|
text: qsTr("Email")
|
||||||
Layout.columnSpan: 3
|
Layout.preferredWidth: gridWidth * 0.15
|
||||||
}
|
}
|
||||||
TemplateLabel {
|
TemplateLabel {
|
||||||
text: qsTr("Email")
|
text: Backend.cloud_verification_status === Enums.CS_NOCLOUD ? qsTr("Not applicable") : PrefCloudStorage.cloud_storage_email
|
||||||
Layout.preferredWidth: gridWidth * 0.15
|
Layout.preferredWidth: gridWidth * 0.60
|
||||||
}
|
}
|
||||||
TemplateLabel {
|
SsrfButton {
|
||||||
text: Backend.cloud_verification_status === Enums.CS_NOCLOUD ? qsTr("Not applicable") : PrefCloudStorage.cloud_storage_email
|
id: changeCloudSettings
|
||||||
font.pointSize: subsurfaceTheme.regularPointSize
|
text: qsTr("Change")
|
||||||
Layout.preferredWidth: gridWidth * 0.60
|
onClicked: {
|
||||||
}
|
Backend.cloud_verification_status = Enums.CS_UNKNOWN
|
||||||
SsrfButton {
|
manager.startPageText = qsTr("Starting...");
|
||||||
id: changeCloudSettings
|
}
|
||||||
text: qsTr("Change")
|
}
|
||||||
onClicked: {
|
TemplateLabel {
|
||||||
Backend.cloud_verification_status = Enums.CS_UNKNOWN
|
text: qsTr("Status")
|
||||||
manager.startPageText = qsTr("Starting...");
|
Layout.preferredWidth: gridWidth * 0.15
|
||||||
|
Layout.preferredHeight: Kirigami.Units.gridUnit * 1.5
|
||||||
|
}
|
||||||
|
TemplateLabel {
|
||||||
|
text: describe[Backend.cloud_verification_status]
|
||||||
|
Layout.preferredWidth: gridWidth * 0.60
|
||||||
|
Layout.preferredHeight: Kirigami.Units.gridUnit * 1.5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TemplateLabel {
|
|
||||||
text: qsTr("Status")
|
|
||||||
Layout.preferredWidth: gridWidth * 0.15
|
|
||||||
Layout.preferredHeight: Kirigami.Units.gridUnit * 1.5
|
|
||||||
}
|
|
||||||
TemplateLabel {
|
|
||||||
text: describe[Backend.cloud_verification_status]
|
|
||||||
Layout.preferredWidth: gridWidth * 0.60
|
|
||||||
Layout.preferredHeight: Kirigami.Units.gridUnit * 1.5
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
color: subsurfaceTheme.darkerPrimaryColor
|
|
||||||
height: 1
|
|
||||||
opacity: 0.5
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
id: themeSettings
|
id: themeSettings
|
||||||
columns: 3
|
columns: 3
|
||||||
|
|
Loading…
Reference in a new issue