зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1716462 - Set right theme name when switching to Adwaita Dark. r=stransky
This doesn't change behavior on GNOME because we already set "gtk-application-prefer-dark-theme" to dark, and the fallback theme is Adwaita, but on KDE we get the wrong close icons if we don't do this. Differential Revision: https://phabricator.services.mozilla.com/D117724
This commit is contained in:
Родитель
6126b0b75d
Коммит
85e2ca0dd0
|
@ -1144,9 +1144,9 @@ void nsLookAndFeel::WithAltThemeConfigured(const Callback& aFn) {
|
|||
|
||||
if (mSystemTheme.mIsDark == GetThemeIsDark()) {
|
||||
// If the theme still didn't change enough, fall back to either Adwaita or
|
||||
// Adwaita Dark.
|
||||
// Adwaita-dark.
|
||||
g_object_set(settings, "gtk-theme-name",
|
||||
mSystemTheme.mIsDark ? "Adwaita" : "Adwaita Dark", nullptr);
|
||||
mSystemTheme.mIsDark ? "Adwaita" : "Adwaita-dark", nullptr);
|
||||
moz_gtk_refresh();
|
||||
fellBackToDefaultTheme = true;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче