Detect more dark themes on Linux

This commit is contained in:
Ilya Fedin 2020-11-23 10:11:52 +04:00 committed by John Preston
parent f88c132c96
commit cffb05e3c9

View file

@ -835,7 +835,7 @@ std::optional<bool> IsDarkMode() {
const auto themeName = Libs::GtkSetting("gtk-theme-name").toLower(); const auto themeName = Libs::GtkSetting("gtk-theme-name").toLower();
if (themeName.endsWith(qsl("-dark"))) { if (themeName.contains(qsl("-dark"))) {
return true; return true;
} }