fix(frontend):modify the highlight effect of the search symbol icon on the edit line.

This commit is contained in:
JunjieBai 2023-09-11 17:58:13 +08:00
parent b9cfd2b2b7
commit 50f28278e5
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ SearchLineEdit::SearchLineEdit(QWidget *parent) : QLineEdit(parent) {
m_queryIcon = new QLabel; m_queryIcon = new QLabel;
QPixmap pixmap = QPixmap(IconLoader::loadIconQt("system-search-symbolic", QIcon(":/res/icons/system-search.symbolic.png")).pixmap(QSize(18, 18))); QPixmap pixmap = QPixmap(IconLoader::loadIconQt("system-search-symbolic", QIcon(":/res/icons/system-search.symbolic.png")).pixmap(QSize(18, 18)));
m_queryIcon->setProperty("useIconHighlightEffect", 0x10); m_queryIcon->setProperty("useIconHighlightEffect", 0x02);
m_queryIcon->setFixedSize(pixmap.size() / pixmap.devicePixelRatio()); m_queryIcon->setFixedSize(pixmap.size() / pixmap.devicePixelRatio());
m_queryIcon->setPixmap(pixmap); m_queryIcon->setPixmap(pixmap);