diff --git a/app/main.cpp b/app/main.cpp index ad082c0..033b749 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -5,6 +5,7 @@ #include #include +#include #include #include @@ -38,6 +39,12 @@ int main(int argc, char *argv[]) QQmlApplicationEngine engine; FileIO fileIO; +#if !defined(Q_OS_MAC) + app.setWindowIcon(QIcon::fromTheme("cool-retro-term", QIcon(":../icons/32x32/cool-retro-term.png"))); +#else + app.setWindowIcon(QIcon(":../icons/32x32/cool-retro-term.png")); +#endif + // Manage command line arguments from the cpp side QStringList args = app.arguments(); if (args.contains("-h") || args.contains("--help")) { diff --git a/app/qml/resources.qrc b/app/qml/resources.qrc index ac03023..34d4312 100644 --- a/app/qml/resources.qrc +++ b/app/qml/resources.qrc @@ -51,5 +51,6 @@ fonts/modern-inconsolata/Inconsolata.otf SettingsScreenTab.qml fonts/modern-fixedsys-excelsior/FSEX301-L2.ttf + ../icons/32x32/cool-retro-term.png