mirror of
https://github.com/horst3180/arc-theme.git
synced 2024-10-27 19:04:02 +00:00
Add the creation of XPM assets (XFWM)
This commit is contained in:
parent
8290cb813f
commit
4117582295
@ -10,6 +10,7 @@ DARK_ASSETS_DIR="assets-dark"
|
|||||||
|
|
||||||
INDEX="assets.txt"
|
INDEX="assets.txt"
|
||||||
|
|
||||||
|
# PNG rendering
|
||||||
for i in `cat $INDEX`
|
for i in `cat $INDEX`
|
||||||
do
|
do
|
||||||
if [ -f $ASSETS_DIR/$i.png ]; then
|
if [ -f $ASSETS_DIR/$i.png ]; then
|
||||||
@ -33,4 +34,23 @@ else
|
|||||||
&& $OPTIPNG -o7 --quiet $DARK_ASSETS_DIR/$i.png
|
&& $OPTIPNG -o7 --quiet $DARK_ASSETS_DIR/$i.png
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
exit 0
|
|
||||||
|
# XPM creation
|
||||||
|
for i in `cat $INDEX`
|
||||||
|
do
|
||||||
|
if [ -f $ASSETS_DIR/$i.xpm ]; then
|
||||||
|
echo $ASSETS_DIR/$i.xpm exists.
|
||||||
|
else
|
||||||
|
echo
|
||||||
|
echo Creating $ASSETS_DIR/$i.xpm
|
||||||
|
convert $ASSETS_DIR/$i.png $ASSETS_DIR/$i.xpm
|
||||||
|
fi
|
||||||
|
if [ -f $DARK_ASSETS_DIR/$i.xpm ]; then
|
||||||
|
echo $DARK_ASSETS_DIR/$i.xpm exists.
|
||||||
|
else
|
||||||
|
echo
|
||||||
|
echo Creating $DARK_ASSETS_DIR/$i.xpm
|
||||||
|
convert $DARK_ASSETS_DIR/$i.png $DARK_ASSETS_DIR/$i.xpm
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
exit 0
|
Loading…
Reference in New Issue
Block a user