Skip to content

Commit

Permalink
fix styleHints not used for Fusion+Windows Style (#3946)
Browse files Browse the repository at this point in the history
  • Loading branch information
octaeder authored Jan 13, 2025
1 parent c267a3a commit aa5e743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/configmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,7 @@ bool ConfigManager::execConfigDialog(QWidget *parentToDialog)
bool ConfigManager::systemUsesDarkMode(const QPalette &pal)
{
#if (QT_VERSION >= 0x060500) && (defined( Q_OS_WIN )||defined( Q_OS_LINUX ))
if(interfaceStyle=="Fusion" && interfaceStyle=="Windows"){
if(interfaceStyle=="Fusion" || interfaceStyle=="Windows"){
// only style Fusion and Windows work properly with stylehints
QStyleHints *sh=QGuiApplication::styleHints();
return sh->colorScheme() == Qt::ColorScheme::Dark;
Expand Down

0 comments on commit aa5e743

Please sign in to comment.