mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-27 20:58:47 +00:00
mobile/UI: cloud credentials follow our theming
This was simply not using our labels / text fields, so it didn't pick up our colors automatically. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
494e5c5a34
commit
68a15b8cdf
2 changed files with 11 additions and 11 deletions
|
@ -43,16 +43,16 @@ Item {
|
|||
text: qsTr("Cloud credentials")
|
||||
level: headingLevel
|
||||
Layout.bottomMargin: Kirigami.Units.largeSpacing / 2
|
||||
color: subsurfaceTheme.textColor
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
TemplateLabelSmall {
|
||||
text: qsTr("Email")
|
||||
visible: !showPin
|
||||
font.pointSize: subsurfaceTheme.smallPointSize
|
||||
color: subsurfaceTheme.secondaryTextColor
|
||||
}
|
||||
|
||||
Controls.TextField {
|
||||
TemplateTextField {
|
||||
id: login
|
||||
text: PrefCloudStorage.cloud_storage_email
|
||||
visible: !showPin
|
||||
|
@ -61,14 +61,13 @@ Item {
|
|||
Qt.ImhNoAutoUppercase
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
TemplateLabelSmall {
|
||||
text: qsTr("Password")
|
||||
visible: !showPin
|
||||
font.pointSize: subsurfaceTheme.smallPointSize
|
||||
color: subsurfaceTheme.secondaryTextColor
|
||||
}
|
||||
|
||||
Controls.TextField {
|
||||
TemplateTextField {
|
||||
id: password
|
||||
text: PrefCloudStorage.cloud_storage_password
|
||||
visible: !showPin
|
||||
|
@ -79,11 +78,11 @@ Item {
|
|||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
TemplateLabel {
|
||||
text: qsTr("PIN")
|
||||
visible: showPin
|
||||
}
|
||||
Controls.TextField {
|
||||
TemplateTextField {
|
||||
id: pin
|
||||
text: ""
|
||||
Layout.fillWidth: true
|
||||
|
@ -147,6 +146,7 @@ Item {
|
|||
}
|
||||
}
|
||||
TemplateButton {
|
||||
Layout.margins: Kirigami.Units.smallSpacing
|
||||
id: signin_forgot_password
|
||||
text: qsTr("Forgot password?")
|
||||
onClicked: {
|
||||
|
|
|
@ -17,7 +17,7 @@ Kirigami.ScrollablePage {
|
|||
Layout.topMargin: 0
|
||||
property int headingLevel: 3
|
||||
}
|
||||
Controls.Label {
|
||||
TemplateLabel {
|
||||
id: messageArea
|
||||
Layout.fillWidth: true
|
||||
Layout.margins: Kirigami.Units.gridUnit
|
||||
|
@ -25,7 +25,7 @@ Kirigami.ScrollablePage {
|
|||
text: manager.startPageText
|
||||
wrapMode: Text.WordWrap
|
||||
}
|
||||
Controls.Label {
|
||||
TemplateLabel {
|
||||
id: explanationTextBasic
|
||||
visible: Backend.cloud_verification_status !== Enums.CS_NEED_TO_VERIFY
|
||||
Layout.fillWidth: true
|
||||
|
@ -38,7 +38,7 @@ Kirigami.ScrollablePage {
|
|||
"the no cloud button above.")
|
||||
wrapMode: Text.WordWrap
|
||||
}
|
||||
Controls.Label {
|
||||
TemplateLabel {
|
||||
id: explanationTextPin
|
||||
visible: Backend.cloud_verification_status === Enums.CS_NEED_TO_VERIFY
|
||||
Layout.fillWidth: true
|
||||
|
|
Loading…
Reference in a new issue