Skip to content

Commit

Permalink
fix gtk, xfwm and Yellow variation (#8)
Browse files Browse the repository at this point in the history
- gtk3: Update assets
- gtk4: Update assets
- build-themes: Update build script for gtk4 for default colour
- generate-themes: fix copying the whole default theme directory
  and update build script for gtk4
- update-variations: fix inkscape segfault
- Yellow: update gtk3 and gtk4 assets
- xfwm: remove rendering scripts
  • Loading branch information
hsbasu authored Jul 16, 2022
1 parent dd6b9f7 commit 5b5f73f
Show file tree
Hide file tree
Showing 315 changed files with 14,951 additions and 14,837 deletions.
11 changes: 5 additions & 6 deletions generate-themes.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def generate_theme(color):
# Copy theme
theme = "usr/share/themes/%s-%s" % (original_name, color)
theme_index = os.path.join(theme, "index.theme")
os.system("cp -R usr/share/themes/%s %s" % (original_name, theme))
os.system("mkdir -p %s" % theme)
os.system("cp -R usr/share/themes/%s/* %s" % (original_name, theme))

# Theme name
for key in ["Name", "GtkTheme"]:
Expand All @@ -58,16 +59,14 @@ def generate_theme(color):
os.system("cp -R src/Mint-Y/gtk-4.0/sass %s/gtk-4.0/" % theme)
y_colorize_directory("%s/gtk-4.0/sass" % theme, color)
os.chdir("%s/gtk-4.0" % theme)

if (variant == "-Dark"):
os.system("cp sass/gtk-dark.scss sass/gtk.scss")
os.system("sassc ./sass/gtk.scss gtk.css")
elif (variant == "-Darker"):
os.system("cp sass/gtk-darker.scss sass/gtk.scss")
else:
os.system("sassc ./sass/gtk-dark.scss gtk-dark.css")
os.system("sassc ./sass/gtk.scss gtk.css")

os.system("rm sass/gtk-dark.scss sass/gtk-darker.scss")

os.system("sassc ./sass/gtk.scss gtk.css")
os.system("rm -rf sass .sass-cache")
os.chdir(curdir)

Expand Down
13 changes: 10 additions & 3 deletions src/Mint-Y/build-themes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
os.chdir("gtk-4.0/")
os.system("sassc ./sass/gtk.scss gtk.css")
os.system("sassc ./sass/gtk-dark.scss gtk-dark.css")
os.system("sassc ./sass/gtk-darker.scss gtk-darker.css")
os.system("./render-assets.sh")
print("Gtk4 assets updated")

Expand Down Expand Up @@ -82,7 +83,7 @@
os.system("mkdir -p %s" % version_folder)
os.system("cp -R gtk-4.0/assets %s" % version_folder)
os.system("cp gtk-4.0/gtk.css %s" % version_folder)
os.system("cp gtk-4.0/gtk-dark.css %s" % version_folder)
# os.system("cp gtk-3.0/thumbnail.png %s" % version_folder)
# Metacity
os.system("cp -R metacity-1 %s" % dest_folder)
os.system("rm %s/*-dark*" % (os.path.join(dest_folder, "metacity-1")))
Expand Down Expand Up @@ -115,9 +116,14 @@
os.system("mkdir -p %s" % version_folder)
os.system("cp -R gtk-3.0/assets %s" % version_folder)
os.system("cp gtk-3.0/gtk-darker.css %s" % os.path.join(version_folder, "gtk.css"))
# os.system("cp gtk-3.0/gtk-dark.css %s" % version_folder)
os.system("cp gtk-3.0/thumbnail.png %s" % version_folder)

# Gtk4
version_folder = os.path.join(dest_folder, "gtk-4.0")
os.system("mkdir -p %s" % version_folder)
os.system("cp -R gtk-4.0/assets %s" % version_folder)
os.system("cp gtk-4.0/gtk-darker.css %s" % os.path.join(version_folder, "gtk.css"))
# os.system("cp gtk-4.0/thumbnail.png %s" % version_folder)
# XFWM
version_folder = os.path.join(dest_folder, "xfwm4")
os.system("mkdir -p %s" % version_folder)
os.system("cp -R xfwm4/*.png %s" % version_folder)
Expand Down Expand Up @@ -146,6 +152,7 @@
os.system("mkdir -p %s" % version_folder)
os.system("cp -R gtk-4.0/assets %s" % version_folder)
os.system("cp gtk-4.0/gtk-dark.css %s" % os.path.join(version_folder, "gtk.css"))
# os.system("cp gtk-3.0/thumbnail-dark.png %s" % os.path.join(version_folder, "thumbnail.png"))
# Metacity
os.system("cp -R metacity-1 %s" % dest_folder)
os.system("mv %s %s" % (os.path.join(dest_folder, "metacity-1", "metacity-theme-1-dark.xml"), os.path.join(dest_folder, "metacity-1", "metacity-theme-1.xml")))
Expand Down
Loading

0 comments on commit 5b5f73f

Please sign in to comment.