[gnome-tweak-tool/gnome-3-26] appearance: Always offer Adwaita and High Contrast GTK+ themes
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool/gnome-3-26] appearance: Always offer Adwaita and High Contrast GTK+ themes
- Date: Fri, 3 Nov 2017 18:43:01 +0000 (UTC)
commit 8a6bfd64a6c5c1ee7ef2bb847e9e5d6804662267
Author: Jeremy Bicha <jbicha ubuntu com>
Date: Fri Nov 3 14:42:13 2017 -0400
appearance: Always offer Adwaita and High Contrast GTK+ themes
since they're built into GTK+ 3
gtweak/tweaks/tweak_group_appearance.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_appearance.py b/gtweak/tweaks/tweak_group_appearance.py
index 483d028..84dd120 100644
--- a/gtweak/tweaks/tweak_group_appearance.py
+++ b/gtweak/tweaks/tweak_group_appearance.py
@@ -53,7 +53,8 @@ class GtkThemeSwitcher(GSettingsComboTweak):
dirs = ( os.path.join(gtweak.DATA_DIR, "themes"),
os.path.join(GLib.get_user_data_dir(), "themes"),
os.path.join(os.path.expanduser("~"), ".themes"))
- valid = walk_directories(dirs, lambda d:
+ valid = ['Adwaita', 'HighContrast']
+ valid += walk_directories(dirs, lambda d:
os.path.exists(os.path.join(d, "gtk-3.0", "gtk.css")) or \
os.path.exists(os.path.join(d, "gtk-3.{}".format(gtk_ver))))
return set(valid)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]