diff --git a/app/main.cpp b/app/main.cpp index 15e9f54c0..9848280d1 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -17,7 +18,8 @@ int main(int argc, char* argv[]) { QApplication app(argc, argv); - app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"))); + app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"), + QIcon(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("icons/hicolor/scalable/apps/kdeconnect.svg"))))); KAboutData aboutData(QStringLiteral("kdeconnect.app"), i18n("KDE Connect"), QStringLiteral("1.0"), i18n("KDE Connect"), KAboutLicense::GPL, i18n("(c) 2015, Aleix Pol Gonzalez")); aboutData.addAuthor(i18n("Aleix Pol Gonzalez"), i18n("Maintainer"), QStringLiteral("aleixpol@kde.org")); KAboutData::setApplicationData(aboutData); diff --git a/daemon/kdeconnectd.cpp b/daemon/kdeconnectd.cpp index a3cb6157f..cd37d3676 100644 --- a/daemon/kdeconnectd.cpp +++ b/daemon/kdeconnectd.cpp @@ -38,7 +38,8 @@ public: : Daemon(parent) , m_nam(nullptr) { - qApp->setWindowIcon(QIcon(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("icons/hicolor/scalable/apps/kdeconnect.svg")))); + qApp->setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"), + QIcon(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("icons/hicolor/scalable/apps/kdeconnect.svg"))))); } void askPairingConfirmation(Device* device) override diff --git a/plugins/notifications/sendreplydialog.cpp b/plugins/notifications/sendreplydialog.cpp index b4aac1788..1bbd8a0f6 100644 --- a/plugins/notifications/sendreplydialog.cpp +++ b/plugins/notifications/sendreplydialog.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include @@ -28,7 +29,8 @@ SendReplyDialog::SendReplyDialog(const QString& originalMessage, const QString& connect(this, &QDialog::accepted, this, &SendReplyDialog::sendButtonClicked); setWindowTitle(topicName); - setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"))); + setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"), + QIcon(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("icons/hicolor/scalable/apps/kdeconnect.svg"))))); setAttribute(Qt::WA_DeleteOnClose); } diff --git a/settings/main.cpp b/settings/main.cpp index 00b76a2ae..46275e477 100644 --- a/settings/main.cpp +++ b/settings/main.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -17,7 +18,8 @@ int main(int argc, char** argv) { QApplication app(argc, argv); - app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"))); + app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"), + QIcon(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("icons/hicolor/scalable/apps/kdeconnect.svg"))))); KAboutData about(QStringLiteral("kdeconnect-settings"), i18n("KDE Connect Settings"), QStringLiteral(KDECONNECT_VERSION_STRING), diff --git a/smsapp/main.cpp b/smsapp/main.cpp index 49efc2df0..d28f133e0 100644 --- a/smsapp/main.cpp +++ b/smsapp/main.cpp @@ -26,7 +26,8 @@ int main(int argc, char *argv[]) { QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QApplication app(argc, argv); - app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"))); + app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"), + QIcon(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("icons/hicolor/scalable/apps/kdeconnect.svg"))))); KAboutData aboutData(QStringLiteral("kdeconnect.sms"), i18n("KDE Connect SMS"), QStringLiteral(KDECONNECT_VERSION_STRING), diff --git a/urlhandler/kdeconnect-handler.cpp b/urlhandler/kdeconnect-handler.cpp index dc234e493..ef6515a80 100644 --- a/urlhandler/kdeconnect-handler.cpp +++ b/urlhandler/kdeconnect-handler.cpp @@ -31,7 +31,8 @@ int main(int argc, char** argv) { QApplication app(argc, argv); - app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"))); + app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect"), + QIcon(QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QStringLiteral("icons/hicolor/scalable/apps/kdeconnect.svg"))))); const QString description = i18n("KDE Connect URL handler"); KAboutData about(QStringLiteral("kdeconnect-urlhandler"), description,