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")
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: {