fix: fix bottom toolbar icon hidpi issue

- fix fatal issue that hidpi icon patch was not applied to bottom toolbar icon.
- add smooth transform for bottom toolbar icon display.
- use 64x64 icon instead of 32x32 to have better result on max-to-200% scale desktop.
This commit is contained in:
yyc12345 committed 2026-11-25 22:00:49 +08:00
1 parent 558ea284c9
commit 962fbfccfa
12 files changed
+1 -1

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@
static QIcon loadHidpiIcon(const QString &resp, QSize sz = QSize(32, 32))
{
QPixmap pm = QPixmap(resp);
pm.scaled(sz * qApp->devicePixelRatio(), Qt::KeepAspectRatio);
pm = pm.scaled(sz * qApp->devicePixelRatio(), Qt::KeepAspectRatio, Qt::SmoothTransformation);
pm.setDevicePixelRatio(qApp->devicePixelRatio());
return QIcon(pm);
}