forked from jnsh/arc-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Use configure.ac to insert the compilation of resources"
This reverts commit ae52d32.
- Loading branch information
1 parent
ca5fe97
commit 75309d0
Showing
4 changed files
with
62 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
# Setup | ||
mv gtk.css gtk-main.css | ||
mv gtk-dark.css gtk-main-dark.css | ||
|
||
|
||
# Get processed assets lists | ||
ls ./assets | sort > temp_asset_list.txt | ||
|
||
|
||
# Build dynamic gresouce xml spec from css and assets | ||
read -d '' RES_PART1 <<"EOF" | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<gresources> | ||
<gresource prefix="/org/gnome/arc-theme"> | ||
EOF | ||
echo $RES_PART1 > gtk.gresource.xml | ||
|
||
|
||
# Import as nodes the file assets | ||
xargs -i echo '<file preprocess="to-pixdata">assets/{}</file>' >> gtk.gresource.xml < temp_asset_list.txt | ||
rm -f temp_asset_list.txt | ||
|
||
|
||
# Write the css file information to the template | ||
read -d '' RES_PART2 <<"EOF" | ||
<file>gtk-main.css</file> | ||
<file>gtk-main-dark.css</file> | ||
</gresource> | ||
</gresources> | ||
EOF | ||
echo $RES_PART2 >> gtk.gresource.xml | ||
|
||
# Compile the gresource file | ||
glib-compile-resources gtk.gresource.xml | ||
echo '@import url("resource:///org/gnome/arc-theme/gtk-main.css");' > gtk.css | ||
echo '@import url("resource:///org/gnome/arc-theme/gtk-main-dark.css");' > gtk-dark.css | ||
|
||
|
||
# Cleanup | ||
rm -rf assets | ||
rm -f gtk.gresource.xml | ||
rm -f gtk-main.css | ||
rm -f gtk-main-dark.css | ||
rm -f compile-gresources.sh |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters