dark mode for win10

This commit is contained in:
Nayla Hanegan 2024-05-23 17:54:33 -04:00
parent bbdf0732ad
commit 6e41e11f0d
4 changed files with 12 additions and 10 deletions

View file

@ -199,7 +199,7 @@ void Settings::ApplyStyle()
// which would select Qt's default theme, but unlike other OSes we don't automatically get a
// default dark theme on Windows when the user has selected dark mode in the Windows settings.
// So manually check if the user wants dark mode and, if yes, load our embedded dark theme.
if (style_type == StyleType::Dark || (style_type != StyleType::Light && IsSystemDark()))
if (style_type == StyleType::Dark && IsSystemDark())
{
QFile file(QStringLiteral(":/dolphin_dark_win/dark.qss"));
if (file.open(QFile::ReadOnly))