Skip to content

Commit 92dac04

Browse files
committed
Fix libAdw accent colors for Mint-X, Mint-X-Brown and Mint-Y-Sand.
Adw doesn't use the exact given color, it finds something close.. and for these it finds something wrong..
1 parent 314fc0d commit 92dac04

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

generate-themes.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,15 @@ def y_colorize_directory (path, variation):
214214

215215
# Files
216216
os.system("cp -R files/* ./")
217+
218+
# Fixes for accent-color
219+
220+
# The green in it is too close to yellow, so libAdwaita uses yellow instead of green.
221+
for file in ["gtk-3.0/gtk.css", "gtk-3.0/gtk-dark.css", "gtk-4.0/gtk.css", "gtk-4.0/gtk-dark.css"]:
222+
os.system(f"sed -i '/define-color accent_color/ s/9ab87c/90b967/' usr/share/themes/Mint-X/{file}")
223+
224+
# The brown/sand is too orange so libAdwaita uses orange instead of sand.
225+
for file in ["gtk-3.0/gtk.css", "gtk-3.0/gtk-dark.css", "gtk-4.0/gtk.css", "gtk-4.0/gtk-dark.css"]:
226+
os.system(f"sed -i '/define-color accent_color/ s/aa876a/c8ac69/' usr/share/themes/Mint-X-Brown/{file}")
227+
os.system(f"sed -i '/define-color accent_color/ s/c5a07c/c8ac69/' usr/share/themes/Mint-Y-Sand/{file}")
228+
os.system(f"sed -i '/define-color accent_color/ s/c5a07c/c8ac69/' usr/share/themes/Mint-Y-Dark-Sand/{file}")

0 commit comments

Comments
 (0)