Disable automatic dark-mode activation depending on OS settings.

This commit is contained in:
Martin Rotter 2023-08-10 13:37:30 +02:00
parent c82c39bfa9
commit aed4ba6639

View file

@ -187,7 +187,7 @@ void SkinFactory::loadSkinFromData(const Skin& skin) {
// palettes in some styles. Also in light mode, // palettes in some styles. Also in light mode,
// colors are now derived from system. // colors are now derived from system.
#if QT_VERSION >= 0x060500 // Qt >= 6.5.0 #if QT_VERSION >= 0x060500 // Qt >= 6.5.0
else if (qApp->styleHints()->colorScheme() == Qt::ColorScheme::Light) { else /*if (qApp->styleHints()->colorScheme() == Qt::ColorScheme::Light)*/ {
qApp->setPalette(qt_fusionPalette(false)); qApp->setPalette(qt_fusionPalette(false));
} }
#endif #endif