diff --git a/lib/settings b/lib/settings index 2fa3adf42..89f767a5e 160000 --- a/lib/settings +++ b/lib/settings @@ -1 +1 @@ -Subproject commit 2fa3adf42da988dc2a34b9b625654aa08e906d4f +Subproject commit 89f767a5ed2ea5724a4bf5b6170365e5d069634a diff --git a/src/messages/messageelement.cpp b/src/messages/messageelement.cpp index 50df13fe6..c28532971 100644 --- a/src/messages/messageelement.cpp +++ b/src/messages/messageelement.cpp @@ -123,9 +123,11 @@ void TextElement::addToContainer(MessageLayoutContainer &container, MessageEleme for (Word &word : this->words) { auto getTextLayoutElement = [&](QString text, int width, bool trailingSpace) { - auto e = (new TextLayoutElement(*this, text, QSize(width, metrics.height()), - this->color.getColor(themeManager), this->style, - container.scale)) + QColor color = this->color.getColor(themeManager); + themeManager.normalizeColor(color); + + auto e = (new TextLayoutElement(*this, text, QSize(width, metrics.height()), color, + this->style, container.scale)) ->setLink(this->getLink()); e->setTrailingSpace(trailingSpace); return e;