From df753b52622ac7446ee6566a000cb80c010ca47b Mon Sep 17 00:00:00 2001 From: miruka Date: Sun, 8 Sep 2019 11:53:01 -0400 Subject: [PATCH] Say "change profile picture" if avatar already set --- src/qml/Pages/EditAccount/Profile.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/qml/Pages/EditAccount/Profile.qml b/src/qml/Pages/EditAccount/Profile.qml index 75b4f3ce..4a3d4aa2 100644 --- a/src/qml/Pages/EditAccount/Profile.qml +++ b/src/qml/Pages/EditAccount/Profile.qml @@ -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 {} }