X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatline-old.cpp;h=c1cd7d2ff970d805aca446b8592f27a1722e4460;hp=0a3cc20038ea526529f4bcbe5c7e3331e2697362;hb=56c684447058042182308ad35cd9446601779016;hpb=2bcb925e42921b124efd19d1978ff19f44a09113 diff --git a/src/qtui/chatline-old.cpp b/src/qtui/chatline-old.cpp index 0a3cc200..c1cd7d2f 100644 --- a/src/qtui/chatline-old.cpp +++ b/src/qtui/chatline-old.cpp @@ -23,6 +23,8 @@ #include "network.h" #include "qtui.h" +#include "qtuisettings.h" + //! Construct a ChatLineOld object from a message. /** * \param m The message to be layouted and rendered @@ -316,8 +318,10 @@ void ChatLineOld::draw(QPainter *p, const QPointF &pos) { p->drawRect(QRectF(pos, QSizeF(tsWidth + QtUi::style()->sepTsSender() + senderWidth + QtUi::style()->sepSenderText() + textWidth, height()))); } else { if(isHighlight) { + QtUiSettings s("QtUi/Colors"); + QColor highlightColor = s.value("highlightColor", QVariant(QColor("lightcoral"))).value(); p->setPen(Qt::NoPen); - p->setBrush(QColor("lightcoral") /*pal.brush(QPalette::AlternateBase) */); + p->setBrush(highlightColor /*pal.brush(QPalette::AlternateBase) */); p->drawRect(QRectF(pos, QSizeF(tsWidth + QtUi::style()->sepTsSender() + senderWidth + QtUi::style()->sepSenderText() + textWidth, height()))); } if(selectionMode == Partial) {