Popups: make key words colored instead of italic

The room name in room forget/leave/invite popups, the exception type in
the unexpected exception popup
This commit is contained in:
miruka 2021-02-25 05:32:05 -04:00
parent bd91b4ca26
commit 13558fd61c
4 changed files with 12 additions and 4 deletions

View File

@ -48,7 +48,9 @@ HFlickableColumnPopup {
onClosed: if (canDestroy) Qt.callLater(popup.destroy)
SummaryLabel {
text: qsTr("Leave <i>%1</i> and lose the history?").arg(roomName)
text: qsTr("Leave %1 and lose the history?").arg(
utils.htmlColorize(roomName, theme.colors.accentText),
)
textFormat: Text.StyledText
}

View File

@ -68,7 +68,9 @@ HColumnPopup {
if (! invitingAllowed && inviteFutureId) py.cancelCoro(inviteFutureId)
SummaryLabel {
text: qsTr("Invite users to <i>%1</i>").arg(roomName)
text: qsTr("Invite users to %1").arg(
utils.htmlColorize(roomName, theme.colors.accentText),
)
textFormat: Text.StyledText
}

View File

@ -33,7 +33,9 @@ HFlickableColumnPopup {
onOpened: leaveButton.forceActiveFocus()
SummaryLabel {
text: qsTr("Leave <i>%1</i>?").arg(roomName)
text: qsTr("Leave %1?").arg(
utils.htmlColorize(roomName, theme.colors.accentText),
)
textFormat: Text.StyledText
}

View File

@ -32,7 +32,9 @@ HColumnPopup {
onOpened: cancelButton.forceActiveFocus()
SummaryLabel {
text: qsTr("Unexpected error occured: <i>%1</i>").arg(errorType)
text: qsTr("Unexpected error occured: %1").arg(
utils.htmlColorize(errorType, theme.colors.accentText),
)
textFormat: Text.StyledText
}