- qreal left = item((ChatLineModel::ColumnType)(_selection & ItemMask)).x();
- QRectF selectRect(left, 0, width() - left, height());
- painter->fillRect(selectRect, QApplication::palette().brush(QPalette::Highlight));
+ QTextCharFormat selFmt = QtUi::style()->format(UiStyle::formatType(type), label | UiStyle::Selected);
+ if(selFmt.hasProperty(QTextFormat::BackgroundBrush)) {
+ qreal left = item((ChatLineModel::ColumnType)(_selection & ItemMask)).x();
+ QRectF selectRect(left, 0, width() - left, height());
+ painter->fillRect(selectRect, selFmt.background());
+ }