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:
Dirk Hohndel 2020-12-20 17:08:18 -08:00
parent 494e5c5a34
commit 68a15b8cdf
2 changed files with 11 additions and 11 deletions

View file

@ -43,16 +43,16 @@ Item {
text: qsTr("Cloud credentials") text: qsTr("Cloud credentials")
level: headingLevel level: headingLevel
Layout.bottomMargin: Kirigami.Units.largeSpacing / 2 Layout.bottomMargin: Kirigami.Units.largeSpacing / 2
color: subsurfaceTheme.textColor
} }
Controls.Label { TemplateLabelSmall {
text: qsTr("Email") text: qsTr("Email")
visible: !showPin visible: !showPin
font.pointSize: subsurfaceTheme.smallPointSize
color: subsurfaceTheme.secondaryTextColor color: subsurfaceTheme.secondaryTextColor
} }
Controls.TextField { TemplateTextField {
id: login id: login
text: PrefCloudStorage.cloud_storage_email text: PrefCloudStorage.cloud_storage_email
visible: !showPin visible: !showPin
@ -61,14 +61,13 @@ Item {
Qt.ImhNoAutoUppercase Qt.ImhNoAutoUppercase
} }
Controls.Label { TemplateLabelSmall {
text: qsTr("Password") text: qsTr("Password")
visible: !showPin visible: !showPin
font.pointSize: subsurfaceTheme.smallPointSize
color: subsurfaceTheme.secondaryTextColor color: subsurfaceTheme.secondaryTextColor
} }
Controls.TextField { TemplateTextField {
id: password id: password
text: PrefCloudStorage.cloud_storage_password text: PrefCloudStorage.cloud_storage_password
visible: !showPin visible: !showPin
@ -79,11 +78,11 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
} }
Controls.Label { TemplateLabel {
text: qsTr("PIN") text: qsTr("PIN")
visible: showPin visible: showPin
} }
Controls.TextField { TemplateTextField {
id: pin id: pin
text: "" text: ""
Layout.fillWidth: true Layout.fillWidth: true
@ -147,6 +146,7 @@ Item {
} }
} }
TemplateButton { TemplateButton {
Layout.margins: Kirigami.Units.smallSpacing
id: signin_forgot_password id: signin_forgot_password
text: qsTr("Forgot password?") text: qsTr("Forgot password?")
onClicked: { onClicked: {

View file

@ -17,7 +17,7 @@ Kirigami.ScrollablePage {
Layout.topMargin: 0 Layout.topMargin: 0
property int headingLevel: 3 property int headingLevel: 3
} }
Controls.Label { TemplateLabel {
id: messageArea id: messageArea
Layout.fillWidth: true Layout.fillWidth: true
Layout.margins: Kirigami.Units.gridUnit Layout.margins: Kirigami.Units.gridUnit
@ -25,7 +25,7 @@ Kirigami.ScrollablePage {
text: manager.startPageText text: manager.startPageText
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
} }
Controls.Label { TemplateLabel {
id: explanationTextBasic id: explanationTextBasic
visible: Backend.cloud_verification_status !== Enums.CS_NEED_TO_VERIFY visible: Backend.cloud_verification_status !== Enums.CS_NEED_TO_VERIFY
Layout.fillWidth: true Layout.fillWidth: true
@ -38,7 +38,7 @@ Kirigami.ScrollablePage {
"the no cloud button above.") "the no cloud button above.")
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
} }
Controls.Label { TemplateLabel {
id: explanationTextPin id: explanationTextPin
visible: Backend.cloud_verification_status === Enums.CS_NEED_TO_VERIFY visible: Backend.cloud_verification_status === Enums.CS_NEED_TO_VERIFY
Layout.fillWidth: true Layout.fillWidth: true