mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-08 16:13:56 +02:00
Detect more dark themes on Linux
This commit is contained in:
parent
f88c132c96
commit
cffb05e3c9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue