mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-01 07:05:48 +00:00
Revert "fix: dcc dock plugin icon pixelated"
This reverts commit 58547b091d4a5baea4352d88ff1ad21d8116a980.
This commit is contained in:
parent
3365365b56
commit
d2e724b83e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user