X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatline.cpp;h=3c68c4b0549e844e2046a3a8df9af68a013a66f6;hb=86a1220cc45c658954860e6dedbc18e38986ca94;hp=f6ea50f9b88b69e1aafc646f6db831b38ae3a5db;hpb=b62a657656223ee79dc0de04ac0194c90709c1de;p=quassel.git diff --git a/src/qtui/chatline.cpp b/src/qtui/chatline.cpp index f6ea50f9..3c68c4b0 100644 --- a/src/qtui/chatline.cpp +++ b/src/qtui/chatline.cpp @@ -186,9 +186,8 @@ void ChatLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, BufferId bufferId = BufferId(chatScene()->idString().toInt()); MsgId lastSeenMsgId = Client::networkModel()->lastSeenMarkerMsgId(bufferId); if(lastSeenMsgId < myMsgId && lastSeenMsgId >= prevMsgId) { - QtUiStyleSettings s("Colors"); QLinearGradient gradient(0, 0, 0, contentsItem().fontMetrics()->lineSpacing()); - gradient.setColorAt(0, s.value("newMsgMarkerFG", QColor(Qt::red)).value()); + gradient.setColorAt(0, QtUi::style()->markerLineBrush().color()); // FIXME: Use full (gradient?) brush instead of just the color gradient.setColorAt(0.1, Qt::transparent); painter->fillRect(boundingRect(), gradient); }