if (pms > 0) {
int const gap = 3;
QPixmap tpixmap(pms * (bpixmap.width() + gap), bpixmap.height());
- tpixmap.fill();
+ tpixmap.fill(Qt::transparent);
QPainter painter(&tpixmap);
int x = 0;
x += spixmap.width() + gap;
}
tip += "</ul>";
+ painter.end();
+ if (guiApp && guiApp->isInDarkMode()) {
+ QImage img = tpixmap.toImage();
+ img.invertPixels();
+ tpixmap.convertFromImage(img);
+ }
findLE_->setButtonPixmap(FancyLineEdit::Right, tpixmap);
} else {
tip = qt_("Click here to change search options");
+ if (guiApp && guiApp->isInDarkMode()) {
+ QImage img = bpixmap.toImage();
+ img.invertPixels();
+ bpixmap.convertFromImage(img);
+ }
findLE_->setButtonPixmap(FancyLineEdit::Right, bpixmap);
}
}