Skip to content

Commit d5d1904

Browse files
committed
dhcpcd-qt: Use 22x22 png icon with system tray
SVG no longer renders with Qt5 :/
1 parent c7a290f commit d5d1904

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/dhcpcd-qt/dhcpcd-qt.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,12 @@ QIcon DhcpcdQt::getIcon(QString category, QString name)
574574

575575
if (QIcon::hasThemeIcon(name))
576576
icon = QIcon::fromTheme(name);
577-
else
578-
icon = QIcon(ICONDIR "/hicolor/scalable/" + category + "/" + name + ".svg");
577+
else {
578+
/* For some reason, SVG no longer displays ... */
579+
QString file = QString("%1/hicolor/22x22/%2/%3.png")
580+
.arg(ICONDIR, category, name);
581+
icon = QIcon(file);
582+
}
579583

580584
return icon;
581585
}

0 commit comments

Comments
 (0)