use Fusion style on window to use proper theme colors

main
Chris Rizzitello 2023-10-04 11:49:44 -04:00 committed by jkennedyvz
parent c610075c9c
commit 9c8b6dd266
1 changed files with 4 additions and 0 deletions

View File

@ -23,10 +23,14 @@ int main(int argc, char* argv[])
QCoreApplication::setApplicationName(QStringLiteral("ashirt"));
#ifdef Q_OS_WIN
QCoreApplication::setOrganizationName(QCoreApplication::applicationName());
#endif
QApplication app(argc, argv);
app.setWindowIcon(getWindowIcon());
#ifdef Q_OS_WIN
app.setStyle("fusion");
#endif
if(!QSystemTrayIcon::isSystemTrayAvailable()) {
showMsgBox(QT_TRANSLATE_NOOP("main", "A System tray is required to interact with the application"));