Fixes #248 user color not normalized
This commit is contained in:
+1
-1
Submodule lib/settings updated: 2fa3adf42d...89f767a5ed
@@ -123,9 +123,11 @@ void TextElement::addToContainer(MessageLayoutContainer &container, MessageEleme
|
|||||||
|
|
||||||
for (Word &word : this->words) {
|
for (Word &word : this->words) {
|
||||||
auto getTextLayoutElement = [&](QString text, int width, bool trailingSpace) {
|
auto getTextLayoutElement = [&](QString text, int width, bool trailingSpace) {
|
||||||
auto e = (new TextLayoutElement(*this, text, QSize(width, metrics.height()),
|
QColor color = this->color.getColor(themeManager);
|
||||||
this->color.getColor(themeManager), this->style,
|
themeManager.normalizeColor(color);
|
||||||
container.scale))
|
|
||||||
|
auto e = (new TextLayoutElement(*this, text, QSize(width, metrics.height()), color,
|
||||||
|
this->style, container.scale))
|
||||||
->setLink(this->getLink());
|
->setLink(this->getLink());
|
||||||
e->setTrailingSpace(trailingSpace);
|
e->setTrailingSpace(trailingSpace);
|
||||||
return e;
|
return e;
|
||||||
|
|||||||
Reference in New Issue
Block a user