When dealing with a system that supports native dark mode and Qt that doesn't, activate only custom dark theme to mimic dark mode and nothing in case of light mode.

This commit is contained in:
Roman Telezhynskyi 2023-08-14 07:26:54 +03:00
parent ae549bf948
commit d9a53a92fc

View File

@ -230,7 +230,7 @@ void ActivateDefaultThemeWin()
}
else
{
ActivateCustomLightTheme();
qApp->setStyleSheet(QString()); // NOLINT(cppcoreguidelines-pro-type-static-cast-downcast)
}
#endif // QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
}
@ -249,7 +249,7 @@ void ActivateDefaultThemeMac()
}
else
{
ActivateCustomLightTheme();
qApp->setStyleSheet(QString()); // NOLINT(cppcoreguidelines-pro-type-static-cast-downcast)
}
#endif // QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
}
@ -269,7 +269,7 @@ void ActivateDefaultTheme()
}
else
{
ActivateCustomLightTheme();
qApp->setStyleSheet(QString()); // NOLINT(cppcoreguidelines-pro-type-static-cast-downcast)
}
#endif
}