use Fusion style on window to use proper theme colors
parent
c610075c9c
commit
9c8b6dd266
|
@ -23,10 +23,14 @@ int main(int argc, char* argv[])
|
||||||
QCoreApplication::setApplicationName(QStringLiteral("ashirt"));
|
QCoreApplication::setApplicationName(QStringLiteral("ashirt"));
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
QCoreApplication::setOrganizationName(QCoreApplication::applicationName());
|
QCoreApplication::setOrganizationName(QCoreApplication::applicationName());
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
app.setWindowIcon(getWindowIcon());
|
app.setWindowIcon(getWindowIcon());
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
app.setStyle("fusion");
|
||||||
|
#endif
|
||||||
|
|
||||||
if(!QSystemTrayIcon::isSystemTrayAvailable()) {
|
if(!QSystemTrayIcon::isSystemTrayAvailable()) {
|
||||||
showMsgBox(QT_TRANSLATE_NOOP("main", "A System tray is required to interact with the application"));
|
showMsgBox(QT_TRANSLATE_NOOP("main", "A System tray is required to interact with the application"));
|
||||||
|
|
Loading…
Reference in New Issue