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:
parent
bd91b4ca26
commit
13558fd61c
|
@ -48,7 +48,9 @@ HFlickableColumnPopup {
|
||||||
onClosed: if (canDestroy) Qt.callLater(popup.destroy)
|
onClosed: if (canDestroy) Qt.callLater(popup.destroy)
|
||||||
|
|
||||||
SummaryLabel {
|
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
|
textFormat: Text.StyledText
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,9 @@ HColumnPopup {
|
||||||
if (! invitingAllowed && inviteFutureId) py.cancelCoro(inviteFutureId)
|
if (! invitingAllowed && inviteFutureId) py.cancelCoro(inviteFutureId)
|
||||||
|
|
||||||
SummaryLabel {
|
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
|
textFormat: Text.StyledText
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,9 @@ HFlickableColumnPopup {
|
||||||
onOpened: leaveButton.forceActiveFocus()
|
onOpened: leaveButton.forceActiveFocus()
|
||||||
|
|
||||||
SummaryLabel {
|
SummaryLabel {
|
||||||
text: qsTr("Leave <i>%1</i>?").arg(roomName)
|
text: qsTr("Leave %1?").arg(
|
||||||
|
utils.htmlColorize(roomName, theme.colors.accentText),
|
||||||
|
)
|
||||||
textFormat: Text.StyledText
|
textFormat: Text.StyledText
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,9 @@ HColumnPopup {
|
||||||
onOpened: cancelButton.forceActiveFocus()
|
onOpened: cancelButton.forceActiveFocus()
|
||||||
|
|
||||||
SummaryLabel {
|
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
|
textFormat: Text.StyledText
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user