From 9502e062f45c9f25933c23aa40ff59c00e176b70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Fri, 2 Apr 2021 11:43:36 +0200 Subject: [PATCH] Support "Default" theme Adwaita was renamed to Default in latest GTK4 code. We need to detect it and treat it the same way as we did for Adwaita. More info in related GTK4 MR: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3079 --- src/appBase.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/appBase.js b/src/appBase.js index 44a5f342..f9cf6c21 100644 --- a/src/appBase.js +++ b/src/appBase.js @@ -97,7 +97,7 @@ class ClapperAppBase extends Gtk.Application if(!window.has_css_class('adwrounded')) window.add_css_class('adwrounded'); - if(theme.startsWith('Adwaita')) { + if(theme.startsWith('Adwaita') || theme.startsWith('Default')) { const isDarkTheme = settings.get_boolean('dark-theme'); if(isDarkTheme && !hasAdwThemeDark) @@ -125,7 +125,7 @@ class ClapperAppBase extends Gtk.Application const window = this.active_window; const hasAdwIcons = window.has_css_class('adwicons'); - if(iconTheme === 'Adwaita') { + if(iconTheme === 'Adwaita' || iconTheme === 'Default') { if(!hasAdwIcons) window.add_css_class('adwicons'); }