mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 16:38:27 +02:00
Update style of chat message links
This commit is contained in:
parent
bfb879d3e6
commit
e8b6b7ab4d
1 changed files with 1 additions and 0 deletions
|
@ -300,6 +300,7 @@ void ChatWindow::messageReceived(const QXmppMessage& message) {
|
||||||
messageArea->setStyleSheet(messageArea->styleSheet() + "background-color: #e1e8ea");
|
messageArea->setStyleSheet(messageArea->styleSheet() + "background-color: #e1e8ea");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
messageArea->document()->setDefaultStyleSheet("a { text-decoration: none; font-weight: bold; color: #267077;}");
|
||||||
messageArea->setHtml(message.body().replace(regexLinks, "<a href=\"\\1\">\\1</a>"));
|
messageArea->setHtml(message.body().replace(regexLinks, "<a href=\"\\1\">\\1</a>"));
|
||||||
|
|
||||||
bool atBottom = isAtBottom();
|
bool atBottom = isAtBottom();
|
||||||
|
|
Loading…
Reference in a new issue