diff --git a/app/settings/delegates/backgroundcmbdelegate.cpp b/app/settings/delegates/backgroundcmbdelegate.cpp index 56666e12c..e3c955229 100644 --- a/app/settings/delegates/backgroundcmbdelegate.cpp +++ b/app/settings/delegates/backgroundcmbdelegate.cpp @@ -122,12 +122,16 @@ void BackgroundCmbBox::paint(QPainter *painter, const QStyleOptionViewItem &opti QString colorPath = backgroundStr.startsWith("/") ? backgroundStr : m_iconsPath + backgroundStr + "print.jpg"; if (QFileInfo(colorPath).exists()) { + bool isSelected{Latte::isSelected(option)}; + QPalette::ColorRole textColorRole = isSelected ? QPalette::HighlightedText : QPalette::Text; + QPen pen; QBrush colorBrush; colorBrush.setTextureImage(QImage(colorPath)); - pen.setColor("black"); + pen.setWidth(1); + pen.setColor(option.palette.color(Latte::colorGroup(option), textColorRole)); painter->setPen(pen); painter->setBrush(colorBrush);