Say "change profile picture" if avatar already set
This commit is contained in:
parent
e93c251624
commit
df753b5262
|
@ -99,7 +99,10 @@ HGridLayout {
|
||||||
Item { Layout.preferredHeight: theme.spacing }
|
Item { Layout.preferredHeight: theme.spacing }
|
||||||
|
|
||||||
HLabel {
|
HLabel {
|
||||||
text: qsTr("Upload profile picture")
|
text: avatar.imageUrl ?
|
||||||
|
qsTr("Change profile picture") :
|
||||||
|
qsTr("Upload profile picture")
|
||||||
|
|
||||||
color: (! avatar.imageUrl && overlayHover.hovered) ?
|
color: (! avatar.imageUrl && overlayHover.hovered) ?
|
||||||
theme.colors.accentText : theme.colors.brightText
|
theme.colors.accentText : theme.colors.brightText
|
||||||
Behavior on color { HColorAnimation {} }
|
Behavior on color { HColorAnimation {} }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user