Skip to content

Commit a02357b

Browse files
committed
Creating drawables for the xxx resolution
1 parent f6052ff commit a02357b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pngs_from_svg.py

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import xml.etree.ElementTree as ElementTree
1212

13-
DIRS = ["drawable-mdpi", "drawable-hdpi", "drawable-xhdpi", "drawable-xxhdpi"]
13+
DIRS = ["drawable-mdpi", "drawable-hdpi", "drawable-xhdpi", "drawable-xxhdpi", "drawable-xxxhdpi"]
1414

1515
def remove_color(path):
1616
style = path.get('style')
@@ -56,7 +56,7 @@ def modify_svg(svg, tmp, color, opacity):
5656

5757
def create_images(svg, dir_pngs, namebase, suffix, isize, color, opacity, nopngcrush=False):
5858
# dimensions for mdpi/hdpi/xhdpi/xxhdpi
59-
sizes = [isize, isize * 1.5, isize * 2, isize * 3]
59+
sizes = [isize, isize * 1.5, isize * 2, isize * 3, isize * 4]
6060

6161
tmp_svg = tempfile.mkstemp(".svg")
6262
os.close(tmp_svg[0])

0 commit comments

Comments
 (0)