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:
Emilio Cobos Álvarez 2021-06-23 07:53:43 +00:00
Родитель 6126b0b75d
Коммит 85e2ca0dd0
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
}