fix: colors for chat links

This commit is contained in:
Richard Ramos 2020-11-26 10:42:10 -04:00 committed by Iuri Matias
parent ff6ceb840a
commit 95616e2d10
1 changed files with 15 additions and 1 deletions

View File

@ -47,7 +47,21 @@ Loader {
visible: repliedMessageType != Constants.imageType
anchors.top: lblReplyAuthor.bottom
anchors.topMargin: 5
text: Emoji.parse(Utils.linkifyAndXSS(repliedMessageContent));
text: `<html>`+
`<head>`+
`<style type="text/css">`+
`a {`+
`color: ${isCurrentUser && !appSettings.compactMode ? Style.current.white : Style.current.textColor};`+
`}`+
`a.mention {`+
`color: ${isCurrentUser ? Style.current.cyan : Style.current.turquoise};`+
`}`+
`</style>`+
`</head>`+
`<body>`+
`${Emoji.parse(Utils.linkifyAndXSS(repliedMessageContent))}`+
`</body>`+
`</html>`
textFormat: Text.RichText
color: root.elementsColor
readOnly: true