From 43a87c1b56b6a7aea811fdc8da18cd7643849ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= Date: Sun, 18 Jan 2026 21:44:57 +0100 Subject: [PATCH] Blacklist icon themes only While the Adwaita icon theme is incomplete and doesn't support Cinnamon, the Adwaita GTK theme and the cursor theme has no such issues. Also, while the HighContrast icon theme is incomplete, the HighContrast GTK theme works fine, there is no reason to hide it. The other blacklisted themes are icon-only themes. --- .../share/cinnamon/cinnamon-settings/modules/cs_themes.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/files/usr/share/cinnamon/cinnamon-settings/modules/cs_themes.py b/files/usr/share/cinnamon/cinnamon-settings/modules/cs_themes.py index f7c47c6c98..f9ef257d8e 100755 --- a/files/usr/share/cinnamon/cinnamon-settings/modules/cs_themes.py +++ b/files/usr/share/cinnamon/cinnamon-settings/modules/cs_themes.py @@ -32,7 +32,7 @@ os.path.join(GLib.get_user_data_dir(), "themes") ] + [os.path.join(datadir, "themes") for datadir in GLib.get_system_data_dirs()] -THEMES_BLACKLIST = [ +ICON_THEMES_BLACKLIST = [ "gnome", # not meant to be used as a theme. Provides icons to inheriting themes. "hicolor", # same "adwaita", "adwaita-dark", "adwaitalegacy", # incomplete outside of GNOME, doesn't support Cinnamon. @@ -114,8 +114,6 @@ def refresh_themes(self): # Gtk themes -- Only shows themes that have a gtk-3.* variation for (name, path) in walk_directories(THEME_FOLDERS, self.filter_func_gtk_dir, return_directories=True): - if name.lower() in THEMES_BLACKLIST: - continue for theme in self.gtk_themes: if name == theme[0]: if path == THEME_FOLDERS[0]: @@ -142,7 +140,7 @@ def refresh_themes(self): walked = walk_directories(ICON_FOLDERS, lambda d: os.path.isdir(d), return_directories=True) valid = [] for directory in walked: - if directory[0].lower() in THEMES_BLACKLIST: + if directory[0].lower() in ICON_THEMES_BLACKLIST: continue path = os.path.join(directory[1], directory[0], "index.theme") if os.path.exists(path): @@ -162,8 +160,6 @@ def refresh_themes(self): # Cursor themes for (name, path) in walk_directories(ICON_FOLDERS, lambda d: os.path.isdir(d) and os.path.exists(os.path.join(d, "cursors")), return_directories=True): - if name.lower() in THEMES_BLACKLIST: - continue for theme in self.cursor_themes: if name == theme[0]: if path == ICON_FOLDERS[0]: