Skip to content

Commit

Permalink
Always use the GPXSee icon theme on Mac and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tumic0 committed Apr 20, 2024
1 parent d045fed commit 56425a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/GUI/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ App::App(int &argc, char **argv) : QApplication(argc, argv)
{
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
setApplicationName(APP_NAME);
#else
#else // Q_OS_WIN32 || Q_OS_MAC
setApplicationName(QString(APP_NAME).toLower());
#endif
#endif // Q_OS_WIN32 || Q_OS_MAC
setApplicationVersion(APP_VERSION);

QTranslator *app = new QTranslator(this);
Expand Down Expand Up @@ -65,6 +65,9 @@ App::App(int &argc, char **argv) : QApplication(argc, argv)
loadPCSs();
Waypoint::loadSymbolIcons(ProgramPaths::symbolsDir());

#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
QIcon::setThemeName(APP_NAME);
#endif // Q_OS_WIN32 || Q_OS_MAC
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
QIcon::setFallbackThemeName(APP_NAME);
#endif // QT 5.12
Expand Down

0 comments on commit 56425a3

Please sign in to comment.