Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit 87a54c1

Browse files
committed
fix: blurry icon with hidpi
change: round corner for charts
1 parent 08f818a commit 87a54c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dde-istate-widgets/istatenetworkwidget.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ void IstateNetworkWidget::redrawProcessList() {
204204
if (rank < entries.size()) {
205205
ProcessEntry entry = entries.at(rank);
206206
auto *qLabel = dynamic_cast<QLabel*>(ui->processesGridLayout->itemAtPosition(r, 0)->widget());
207-
qLabel->setPixmap(entry.getIcon().pixmap(qLabel->size()));
207+
auto pixmap = entry.getIcon().pixmap(qLabel->size() * this->devicePixelRatioF());
208+
pixmap.setDevicePixelRatio(this->devicePixelRatioF());
209+
qLabel->setPixmap(pixmap);
208210

209211
qLabel = dynamic_cast<QLabel*>(ui->processesGridLayout->itemAtPosition(r, 1)->widget());
210212
QFontMetrics fontWidth(qLabel->font());

0 commit comments

Comments
 (0)