mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-05 03:14:28 +00:00
Detect more dark themes on Linux
This commit is contained in:
@@ -835,7 +835,7 @@ std::optional<bool> IsDarkMode() {
|
||||
|
||||
const auto themeName = Libs::GtkSetting("gtk-theme-name").toLower();
|
||||
|
||||
if (themeName.endsWith(qsl("-dark"))) {
|
||||
if (themeName.contains(qsl("-dark"))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user