Revert "fix: dcc dock plugin icon pixelated"

This reverts commit 58547b091d4a5baea4352d88ff1ad21d8116a980.
This commit is contained in:
chenhongtao 2023-11-28 15:01:51 +08:00 committed by deepin-bot[bot]
parent 3365365b56
commit d2e724b83e

View File

@ -189,7 +189,7 @@ DockItemInfos DBusDockAdaptors::plugins()
QBuffer buffer(&info.iconLight);
if (buffer.open(QIODevice::WriteOnly)) {
QPixmap pixmap = lightIcon.pixmap(pixmapSize);
pixmap.save(&buffer, "svg");
pixmap.save(&buffer, "png");
}
}
QIcon darkIcon = getSettingIcon(plugin, pixmapSize, DGuiApplicationHelper::ColorType::DarkType);
@ -197,7 +197,7 @@ DockItemInfos DBusDockAdaptors::plugins()
QBuffer buffer(&info.iconDark);
if (buffer.open(QIODevice::WriteOnly)) {
QPixmap pixmap = darkIcon.pixmap(pixmapSize);
pixmap.save(&buffer, "svg");
pixmap.save(&buffer, "png");
}
}
pluginInfos << info;