mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
Handle svg image assets in Adwaita
The build glue for collecting all the assets in Adwaita as resources was assuming that they are all pngs, and tried to preprocess them into embedded GdkPixbufs. Fix it to leave svgs unmolested, so they can be recolored at runtime.
This commit is contained in:
parent
419f2c670d
commit
b4bfba00c4
@ -1215,10 +1215,14 @@ gtk.gresource.xml: Makefile.am inspector/Makefile.inc
|
||||
echo " <file alias='theme/Adwaita-dark.css'>theme/Adwaita/gtk-dark.css</file>" >> $@; \
|
||||
echo " <file>theme/Adwaita/gtk-contained.css</file>" >> $@; \
|
||||
echo " <file>theme/Adwaita/gtk-contained-dark.css</file>" >> $@; \
|
||||
for f in $(srcdir)/theme/Adwaita/assets/*; do \
|
||||
for f in $(srcdir)/theme/Adwaita/assets/*.png; do \
|
||||
n=`basename $$f`; \
|
||||
echo " <file preprocess='to-pixdata'>theme/Adwaita/assets/$$n</file>" >> $@; \
|
||||
done; \
|
||||
for f in $(srcdir)/theme/Adwaita/assets/*.svg; do \
|
||||
n=`basename $$f`; \
|
||||
echo " <file>theme/Adwaita/assets/$$n</file>" >> $@; \
|
||||
done; \
|
||||
echo " <file alias='theme/HighContrast.css'>theme/HighContrast/gtk.css</file>" >> $@; \
|
||||
echo " <file alias='theme/HighContrastInverse.css'>theme/HighContrast/gtk-inverse.css</file>" >> $@; \
|
||||
echo " <file>theme/HighContrast/gtk-contained.css</file>" >> $@; \
|
||||
|
Loading…
Reference in New Issue
Block a user