Skip to content

Commit f1c11cd

Browse files
megaxkhurshid-alam
authored andcommitted
Create and Restructure all assets Adwaita and Arc-theme style.
Create assets render. Restructure all assets Adwaita and Arc-theme style. Fixed all-assets. This will improve the display of icons on HiDPI display.
1 parent ed3e728 commit f1c11cd

85 files changed

Lines changed: 397 additions & 174 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

scripts/render-assets.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#! /bin/bash
2+
3+
INKSCAPE="/usr/bin/inkscape"
4+
OPTIPNG="/usr/bin/optipng"
5+
6+
SRC_FILE="../src/assets/all-assets.svg"
7+
ASSETS_DIR="../src/assets"
8+
INDEX="../src/assets/all-assets.txt"
9+
10+
for i in `cat $INDEX`
11+
do
12+
if [ -f $ASSETS_DIR/$i.png ]; then
13+
echo $ASSETS_DIR/$i.png exists.
14+
else
15+
echo
16+
echo Rendering $ASSETS_DIR/$i.png
17+
$INKSCAPE --export-id=$i \
18+
--export-id-only \
19+
--export-png=$ASSETS_DIR/$i.png $SRC_FILE >/dev/null #\
20+
# && $OPTIPNG -o7 --quiet $ASSETS_DIR/$i.png
21+
fi
22+
if [ -f $ASSETS_DIR/$i@2.png ]; then
23+
echo $ASSETS_DIR/$i@2.png exists.
24+
else
25+
echo
26+
echo Rendering $ASSETS_DIR/$i@2.png
27+
$INKSCAPE --export-id=$i \
28+
--export-dpi=180 \
29+
--export-id-only \
30+
--export-png=$ASSETS_DIR/$i@2.png $SRC_FILE >/dev/null #\
31+
# && $OPTIPNG -o7 --quiet $ASSETS_DIR/$i@2.png
32+
fi
33+
done
34+
exit 0

0 commit comments

Comments
 (0)