Say "change profile picture" if avatar already set

This commit is contained in:
miruka 2019-09-08 11:53:01 -04:00
parent e93c251624
commit df753b5262

View File

@ -99,7 +99,10 @@ HGridLayout {
Item { Layout.preferredHeight: theme.spacing }
HLabel {
text: qsTr("Upload profile picture")
text: avatar.imageUrl ?
qsTr("Change profile picture") :
qsTr("Upload profile picture")
color: (! avatar.imageUrl && overlayHover.hovered) ?
theme.colors.accentText : theme.colors.brightText
Behavior on color { HColorAnimation {} }