From 9d160ed7a0f76394d31501a2bc253929cd89dd60 Mon Sep 17 00:00:00 2001 From: Albert S Date: Thu, 28 Apr 2022 09:13:34 +0200 Subject: [PATCH] gui: Add icon Not the best on dark themes, better than nothing for now. --- gui/gui.pro | 2 ++ gui/main.cpp | 1 + icon.svg | 21 +++++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 icon.svg diff --git a/gui/gui.pro b/gui/gui.pro index 5e1e37f..f47b052 100644 --- a/gui/gui.pro +++ b/gui/gui.pro @@ -74,3 +74,5 @@ else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../shar else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../shared/release/shared.lib else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$OUT_PWD/../shared/debug/shared.lib else:unix: PRE_TARGETDEPS += $$OUT_PWD/../shared/libshared.a + +RESOURCES = ../icon.svg diff --git a/gui/main.cpp b/gui/main.cpp index ccdd996..a5b82cf 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -157,6 +157,7 @@ int main(int argc, char *argv[]) } // Keep this post sandbox, afterwards does not work (suspect due to threads, but unconfirmed) QApplication a(argc, argv); + a.setWindowIcon(QIcon(":/icon.svg")); qRegisterMetaType>("QVector"); qRegisterMetaType>("QVector"); diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..064c060 --- /dev/null +++ b/icon.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + +