From d5d190456641edad9fd83c47396e011ef8584873 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sun, 9 Aug 2020 08:36:14 +0100 Subject: dhcpcd-qt: Use 22x22 png icon with system tray SVG no longer renders with Qt5 :/ --- src/dhcpcd-qt/dhcpcd-qt.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/dhcpcd-qt/dhcpcd-qt.cpp b/src/dhcpcd-qt/dhcpcd-qt.cpp index 72ed924..b9cf703 100644 --- a/src/dhcpcd-qt/dhcpcd-qt.cpp +++ b/src/dhcpcd-qt/dhcpcd-qt.cpp @@ -574,8 +574,12 @@ QIcon DhcpcdQt::getIcon(QString category, QString name) if (QIcon::hasThemeIcon(name)) icon = QIcon::fromTheme(name); - else - icon = QIcon(ICONDIR "/hicolor/scalable/" + category + "/" + name + ".svg"); + else { + /* For some reason, SVG no longer displays ... */ + QString file = QString("%1/hicolor/22x22/%2/%3.png") + .arg(ICONDIR, category, name); + icon = QIcon(file); + } return icon; } -- cgit v1.2.3