mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: dci icon size incorrect
由于 dci 图标殷勤不再乘以缩放,这里不需要再次处理了 见: https://github.com/linuxdeepin/qt5integration/pull/149 Change-Id: I88b9959be0ec88fb3e420b60d7badc5aef772f1d
This commit is contained in:
parent
430e92adbc
commit
67d098ed1e
@ -50,7 +50,7 @@ QPixmap IconManager::pixmap(DGuiApplicationHelper::ColorType colorType) const
|
|||||||
QPainter pa(&pixmap);
|
QPainter pa(&pixmap);
|
||||||
pa.setCompositionMode(QPainter::CompositionMode_SourceIn);
|
pa.setCompositionMode(QPainter::CompositionMode_SourceIn);
|
||||||
pa.fillRect(pixmap.rect(), foreColor);
|
pa.fillRect(pixmap.rect(), foreColor);
|
||||||
return pixmap.scaled(pixmap.size() / qApp->devicePixelRatio());
|
return pixmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
PluginsItemInterface *IconManager::findPlugin(const QString &pluginName) const
|
PluginsItemInterface *IconManager::findPlugin(const QString &pluginName) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user