EditAccount header: match Display name field

This commit is contained in:
miruka
2019-07-24 16:35:38 -04:00
parent c3746fa106
commit 47d30352fa
2 changed files with 12 additions and 4 deletions

View File

@@ -17,11 +17,12 @@ HPage {
readonly property var userInfo: users.find(userId)
readonly property bool ready: userInfo && ! userInfo.loading
property string headerName: userInfo ? userInfo.displayName : ""
hideHeaderUnderHeight: avatarPreferredSize
headerLabel.text:
qsTr("Account settings for %1").arg(
Utils.coloredNameHtml(userInfo ? userInfo.displayName : "", userId)
)
headerLabel.text: qsTr("Account settings for %1").arg(
Utils.coloredNameHtml(headerName, userId)
)
HRectangle {
color: ready ? theme.controls.box.background : "transparent"