Revert build from svg
This commit is contained in:
parent
1bebbd13a5
commit
59c6d22146
|
@ -5,6 +5,3 @@
|
|||
/build
|
||||
*.iml
|
||||
/*/build
|
||||
/theme-build-tmp
|
||||
/gradle/local.properties
|
||||
/templates
|
||||
|
|
126
build.gradle
126
build.gradle
|
@ -1,16 +1,4 @@
|
|||
// Written by Alexander Sosedkin <monk@unboiled.info>
|
||||
// This scripts builds the icon theme, rendering png files in build-time.
|
||||
// Should be portable, doesn't require rsvg-tools or inkscape at all.
|
||||
|
||||
// Somebody who knows groovy/gradle should have a look at that
|
||||
// and correct all the dirty hacks I've used here, willingly or unwillingly.
|
||||
|
||||
// For some reasons the former template was so messy, that the icons
|
||||
// based on it do not render. Please paste the icon onto the new template
|
||||
// (svg-icons/twelf-icon-template.png).
|
||||
|
||||
// It also generates pre-colored svg icon templates
|
||||
// in a directory named 'templates'.
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
|
@ -18,8 +6,6 @@ buildscript {
|
|||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:1.0.1'
|
||||
classpath 'org.apache.xmlgraphics:batik-codec:1.7'
|
||||
classpath 'org.apache.xmlgraphics:batik-rasterizer:1.7'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
@ -32,20 +18,7 @@ allprojects {
|
|||
}
|
||||
}
|
||||
|
||||
import org.apache.batik.apps.rasterizer.SVGConverter
|
||||
import org.apache.batik.apps.rasterizer.DestinationType
|
||||
void svgToPng(String svg_filename, String png_filename, int size) {
|
||||
println 'Converting ' + svg_filename + ' to size ' + size
|
||||
SVGConverter svgConverter = new SVGConverter()
|
||||
svgConverter.setSources([svg_filename] as String[])
|
||||
svgConverter.setDestinationType(DestinationType.PNG)
|
||||
svgConverter.setHeight(size)
|
||||
svgConverter.setWidth(size)
|
||||
svgConverter.setDst(new File(png_filename))
|
||||
svgConverter.execute()
|
||||
}
|
||||
|
||||
project(':theme-build-tmp') {
|
||||
project(':theme') {
|
||||
apply plugin: 'base'
|
||||
apply plugin: 'com.android.application'
|
||||
android {
|
||||
|
@ -62,99 +35,4 @@ project(':theme-build-tmp') {
|
|||
dependencies {
|
||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
}
|
||||
|
||||
task copyTemplate(type:Copy) {
|
||||
from '../theme'
|
||||
into '.'
|
||||
}
|
||||
preBuild.dependsOn(copyTemplate)
|
||||
copyTemplate.outputs.dir '.'
|
||||
clean.dependsOn cleanCopyTemplate
|
||||
|
||||
task renderPngs << {
|
||||
// TODO: proper path concatenation?
|
||||
final outDir = './theme-build-tmp/src/main/assets/icons/res/drawable-'
|
||||
final sizes = [mdpi: 48, hdpi: 72, xhdpi: 96, xxhdpi: 144, xxxhdpi: 192]
|
||||
final svgs = fileTree(dir: '../svg-icons', include: '*.svg')
|
||||
for (f in svgs) {
|
||||
for (e in sizes) {
|
||||
svgToPng(f.path,
|
||||
outDir + e.key + '/' +
|
||||
org.apache.commons.io.FilenameUtils.getBaseName(f.name) +
|
||||
'.png',
|
||||
e.value)
|
||||
}
|
||||
}
|
||||
}
|
||||
renderPngs.dependsOn(copyTemplate)
|
||||
preBuild.dependsOn(renderPngs)
|
||||
// TODO: cleaning should be more elegant
|
||||
|
||||
}
|
||||
|
||||
|
||||
// generating pre-colored svg templates from a master svg template
|
||||
|
||||
final shadeIndigo900 = '#1a237e'
|
||||
final shadeBlueGrey900 = '#263238'
|
||||
final shadeDeepOrange900 = '#bf360c'
|
||||
final shadeBrown900 = '#3e2723'
|
||||
final shadeGrey900 = '#212121'
|
||||
final colors = [ // main, shade/shadow
|
||||
'blue': ['#2196f3', shadeIndigo900],
|
||||
'indigo': ['#3f51b5', shadeIndigo900],
|
||||
'deep-purple': ['#673ab7', shadeIndigo900],
|
||||
'purple': ['#9c27b0', shadeIndigo900],
|
||||
|
||||
'blue-grey': ['#607d8b', shadeBlueGrey900],
|
||||
'light-blue': ['#03a9f4', shadeBlueGrey900],
|
||||
'cyan': ['#00bcd4', shadeBlueGrey900],
|
||||
'teal': ['#009688', shadeBlueGrey900],
|
||||
'green': ['#4caf50', shadeBlueGrey900],
|
||||
'light-green': ['#8bc34a', shadeBlueGrey900],
|
||||
'lime': ['#cddc39', shadeBlueGrey900],
|
||||
|
||||
'yellow': ['#ffeb3b', shadeDeepOrange900],
|
||||
'amber': ['#ffc107', shadeDeepOrange900],
|
||||
'orange': ['#ff9800', shadeDeepOrange900],
|
||||
|
||||
'deep-orange': ['#ff5722', shadeBrown900],
|
||||
'red': ['#f44336', shadeBrown900],
|
||||
'pink': ['#e91e63', shadeBrown900],
|
||||
'brown': ['#795548', shadeBrown900],
|
||||
|
||||
// TODO: maybe these should not be included?
|
||||
/*
|
||||
'grey50': ['#fafafa', shadeGrey900],
|
||||
'grey100': ['#f5f5f5', shadeGrey900],
|
||||
'grey200': ['#eeeeee', shadeGrey900],
|
||||
'grey300': ['#e0e0e0', shadeGrey900],
|
||||
'grey400': ['#bdbdbd', shadeGrey900],
|
||||
'grey500': ['#9e9e9e', shadeGrey900],
|
||||
'grey600': ['#757575', shadeGrey900],
|
||||
'grey700': ['#616161', shadeGrey900],
|
||||
'grey800': ['#424242', shadeGrey900],
|
||||
*/
|
||||
]
|
||||
|
||||
project(':templates') {
|
||||
apply plugin: 'base'
|
||||
task build << {
|
||||
final master_tpl = new File('./svg-icons/twelf_icon_template.svg').text
|
||||
new File("./templates").mkdir()
|
||||
for (c in colors) {
|
||||
println 'Generating template ' + c.key + '.svg'
|
||||
new File('./templates/' + c.key + '.svg').write(
|
||||
master_tpl
|
||||
.replace('#03a9f4', c.value[0])
|
||||
.replace('#01579b', c.value[1])
|
||||
)
|
||||
}
|
||||
}
|
||||
build.outputs.upToDateWhen { false } // hack
|
||||
build.outputs.dir './templates'
|
||||
clean.dependsOn cleanBuild
|
||||
// TODO: fix cleaning
|
||||
// TODO: fix rebuilding
|
||||
}
|
||||
project(':theme-build-tmp').build.dependsOn project(':templates').build
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
include ':theme-build-tmp'
|
||||
include ':templates'
|
||||
include ':theme'
|
|
@ -1,212 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="26.950001"
|
||||
height="26.950001"
|
||||
id="svg3522"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.5 r10040"
|
||||
sodipodi:docname="syncthing.svg">
|
||||
<defs
|
||||
id="defs3524">
|
||||
<filter
|
||||
color-interpolation-filters="sRGB"
|
||||
inkscape:collect="always"
|
||||
id="filter6206">
|
||||
<feGaussianBlur
|
||||
inkscape:collect="always"
|
||||
stdDeviation="0.658125"
|
||||
id="feGaussianBlur6208" />
|
||||
</filter>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="22.395604"
|
||||
inkscape:cx="5.4401749"
|
||||
inkscape:cy="13.340847"
|
||||
inkscape:current-layer="layer2"
|
||||
showgrid="true"
|
||||
inkscape:grid-bbox="true"
|
||||
inkscape:document-units="px"
|
||||
inkscape:window-width="1600"
|
||||
inkscape:window-height="874"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="26"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata3527">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:label="Bottom"
|
||||
inkscape:groupmode="layer"
|
||||
transform="translate(0,-5.05)">
|
||||
<path
|
||||
style="opacity:0.2;fill:#1a237e;fill-opacity:1;stroke:none;filter:url(#filter6206)"
|
||||
d="m 4.417683,1028.1747 0,1.6051 -1.605183,0 0,18.1922 1.605183,0 0,2.1402 18.192073,0 0,-2.1402 2.140244,0 0,-18.1922 -2.140244,0 0,-1.6051 -18.192073,0 z"
|
||||
id="rect6141"
|
||||
inkscape:connector-curvature="0"
|
||||
transform="matrix(1.0107072,0,0,0.99762402,-0.195765,-1017.7875)" />
|
||||
<path
|
||||
style="fill:#03a9f4;fill-opacity:1;stroke:none"
|
||||
d="m 3.915907,7.873999 c -0.620356,0 -1.123255,0.4732 -1.123255,1.0598 l 0,19.1379 c 0,0.6197 0.502899,1.1221 1.123255,1.1221 l 19.095343,0 c 0.620356,0 1.123255,-0.5024 1.123255,-1.1221 l 0,-19.1379 c 0,-0.5866 -0.502899,-1.0598 -1.123255,-1.0598 l -19.095343,0 z"
|
||||
id="rect4291"
|
||||
inkscape:connector-curvature="0" />
|
||||
<g
|
||||
id="g4198"
|
||||
transform="matrix(0.37343619,0,0,0.37343619,4.4375,8.449999)">
|
||||
<path
|
||||
id="path4188"
|
||||
d="M 0,0 H 48 V 48 H 0 z"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:none" />
|
||||
</g>
|
||||
<path
|
||||
style="opacity:0.2;fill:#fffffe;fill-opacity:1;stroke:none"
|
||||
d="m 3.920889,7.843799 c -0.620775,0 -1.124013,0.4744 -1.124013,1.0625 l 0,0.2812 c 0,-0.5881 0.503238,-1.0625 1.124013,-1.0625 l 19.108223,0 c 0.620775,0 1.124013,0.4744 1.124013,1.0625 l 0,-0.2812 c 0,-0.5881 -0.503238,-1.0625 -1.124013,-1.0625 l -19.108223,0 z"
|
||||
id="rect4291-2"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
style="opacity:0.2;fill:#01579b;fill-opacity:1;stroke:none"
|
||||
d="m 23.01125,29.187499 c 0.61992,0 1.1225,-0.4744 1.1225,-1.0625 l 0,-0.2813 c 0,0.5881 -0.50258,1.0625 -1.1225,1.0625 l -19.0825,0 c -0.619919,0 -1.1225,-0.4744 -1.1225,-1.0625 l 0,0.2813 c 0,0.5881 0.502581,1.0625 1.1225,1.0625 l 19.0825,0 z"
|
||||
id="rect4291-2-7" />
|
||||
<g
|
||||
id="g6215"
|
||||
transform="matrix(0.36470876,0,0,0.36470876,4.814601,8.441899)">
|
||||
<path
|
||||
id="path6205"
|
||||
d="M 0,0 H 48 V 48 H 0 z"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:none" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer3"
|
||||
inkscape:label="Hints"
|
||||
style="display:none">
|
||||
<rect
|
||||
transform="matrix(0,1,-1,0,0,0)"
|
||||
y="-18.870625"
|
||||
x="6.7400002"
|
||||
height="10.791246"
|
||||
width="13.47"
|
||||
id="rect4387-7"
|
||||
style="opacity:0.2;fill:#f4511e;fill-opacity:1;stroke:none" />
|
||||
<rect
|
||||
y="8.0793772"
|
||||
x="6.7400002"
|
||||
height="10.791246"
|
||||
width="13.47"
|
||||
id="rect4387"
|
||||
style="opacity:0.2;fill:#004d40;fill-opacity:1;stroke:none" />
|
||||
<rect
|
||||
transform="matrix(0,1,-1,0,0,0)"
|
||||
y="-19.64875"
|
||||
x="7.3012505"
|
||||
height="12.347499"
|
||||
width="12.3475"
|
||||
id="rect4387-7-8"
|
||||
style="opacity:0.2;fill:#bf360c;fill-opacity:1;stroke:none" />
|
||||
</g>
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer2"
|
||||
inkscape:label="Icon">
|
||||
<g
|
||||
id="g4265"
|
||||
transform="matrix(0.98677663,0,0,0.98677663,0.18958314,-1011.6834)">
|
||||
<path
|
||||
transform="matrix(1.6216435,0,0,1.6975098,-10.365977,1013.2518)"
|
||||
d="m 18.11961,17.851526 c 0,0.521716 -0.44272,0.944651 -0.988844,0.944651 -0.546124,0 -0.988845,-0.422935 -0.988845,-0.944651 0,-0.521716 0.442721,-0.94465 0.988845,-0.94465 0.546124,0 0.988844,0.422934 0.988844,0.94465 z"
|
||||
sodipodi:ry="0.94465041"
|
||||
sodipodi:rx="0.98884457"
|
||||
sodipodi:cy="17.851526"
|
||||
sodipodi:cx="17.130766"
|
||||
id="path4223"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
sodipodi:type="arc" />
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
id="path4225"
|
||||
sodipodi:cx="17.130766"
|
||||
sodipodi:cy="17.851526"
|
||||
sodipodi:rx="0.98884457"
|
||||
sodipodi:ry="0.94465041"
|
||||
d="m 18.11961,17.851526 c 0,0.521716 -0.44272,0.944651 -0.988844,0.944651 -0.546124,0 -0.988845,-0.422935 -0.988845,-0.944651 0,-0.521716 0.442721,-0.94465 0.988845,-0.94465 0.546124,0 0.988844,0.422934 0.988844,0.94465 z"
|
||||
transform="matrix(1.6216435,0,0,1.6975098,-8.819181,1005.8714)" />
|
||||
<path
|
||||
transform="matrix(1.6216435,0,0,1.6975098,-13.046197,1009.3886)"
|
||||
d="m 18.11961,17.851526 c 0,0.521716 -0.44272,0.944651 -0.988844,0.944651 -0.546124,0 -0.988845,-0.422935 -0.988845,-0.944651 0,-0.521716 0.442721,-0.94465 0.988845,-0.94465 0.546124,0 0.988844,0.422934 0.988844,0.94465 z"
|
||||
sodipodi:ry="0.94465041"
|
||||
sodipodi:rx="0.98884457"
|
||||
sodipodi:cy="17.851526"
|
||||
sodipodi:cx="17.130766"
|
||||
id="path4227"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
sodipodi:type="arc" />
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
id="path4229"
|
||||
sodipodi:cx="17.130766"
|
||||
sodipodi:cy="17.851526"
|
||||
sodipodi:rx="0.98884457"
|
||||
sodipodi:ry="0.94465041"
|
||||
d="m 18.11961,17.851526 c 0,0.521716 -0.44272,0.944651 -0.988844,0.944651 -0.546124,0 -0.988845,-0.422935 -0.988845,-0.944651 0,-0.521716 0.442721,-0.94465 0.988845,-0.94465 0.546124,0 0.988844,0.422934 0.988844,0.94465 z"
|
||||
transform="matrix(1.6216435,0,0,1.6975098,-20.186822,1010.0605)" />
|
||||
<path
|
||||
transform="translate(0,1025.4122)"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4231"
|
||||
d="m 7.5931732,14.951441 7.1406248,-0.6719"
|
||||
style="fill:#ffffff;stroke:#ffffff;stroke-width:1.01340055px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
transform="translate(0,1025.4122)"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4233"
|
||||
d="m 18.960814,10.762341 -4.227016,3.5172"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:1.01340055px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
transform="translate(0,1025.4122)"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4235"
|
||||
d="m 17.414018,18.142741 -2.68022,-3.8632"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:1.01340055px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
transform="matrix(1.0144252,0,0,1.0144252,-0.19421514,1025.2177)"
|
||||
d="m 19.590924,13.4839 c 0,3.38404 -2.743306,6.127346 -6.127346,6.127346 -3.38404,0 -6.1273458,-2.743306 -6.1273458,-6.127346 0,-3.38404 2.7433058,-6.127346 6.1273458,-6.127346 3.38404,0 6.127346,2.743306 6.127346,6.127346 z"
|
||||
sodipodi:ry="6.127346"
|
||||
sodipodi:rx="6.127346"
|
||||
sodipodi:cy="13.4839"
|
||||
sodipodi:cx="13.463578"
|
||||
id="path4253"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:0.99899;stroke-opacity:1"
|
||||
sodipodi:type="arc" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 8.5 KiB |
|
@ -1,198 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="26.950001"
|
||||
height="26.950001"
|
||||
id="svg3522"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.5 r10040"
|
||||
sodipodi:docname="twelf_icon_template.svg">
|
||||
<defs
|
||||
id="defs3524">
|
||||
<filter
|
||||
color-interpolation-filters="sRGB"
|
||||
inkscape:collect="always"
|
||||
id="filter6206">
|
||||
<feGaussianBlur
|
||||
inkscape:collect="always"
|
||||
stdDeviation="0.658125"
|
||||
id="feGaussianBlur6208" />
|
||||
</filter>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="15.836083"
|
||||
inkscape:cx="24.228635"
|
||||
inkscape:cy="8.9465547"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:grid-bbox="true"
|
||||
inkscape:document-units="px"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="742"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="26"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata3527">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:label="Bottom"
|
||||
inkscape:groupmode="layer"
|
||||
transform="translate(0,-5.05)">
|
||||
<g
|
||||
id="g3007">
|
||||
<path
|
||||
transform="matrix(1.0107072,0,0,0.99762402,-0.195765,-1017.7875)"
|
||||
inkscape:connector-curvature="0"
|
||||
id="rect6141"
|
||||
d="m 4.417683,1028.1747 0,1.6051 -1.605183,0 0,18.1922 1.605183,0 0,2.1402 18.192073,0 0,-2.1402 2.140244,0 0,-18.1922 -2.140244,0 0,-1.6051 -18.192073,0 z"
|
||||
style="opacity:0.20000000000000001;fill:#01579b;fill-opacity:1;stroke:none;filter:url(#filter6206)" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="rect4291"
|
||||
d="m 3.915907,7.873999 c -0.620356,0 -1.123255,0.4732 -1.123255,1.0598 l 0,19.1379 c 0,0.6197 0.502899,1.1221 1.123255,1.1221 l 19.095343,0 c 0.620356,0 1.123255,-0.5024 1.123255,-1.1221 l 0,-19.1379 c 0,-0.5866 -0.502899,-1.0598 -1.123255,-1.0598 l -19.095343,0 z"
|
||||
style="fill:#03a9f4;fill-opacity:1;stroke:none" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="rect4291-2"
|
||||
d="m 3.920889,7.843799 c -0.620775,0 -1.124013,0.4744 -1.124013,1.0625 l 0,0.2812 c 0,-0.5881 0.503238,-1.0625 1.124013,-1.0625 l 19.108223,0 c 0.620775,0 1.124013,0.4744 1.124013,1.0625 l 0,-0.2812 c 0,-0.5881 -0.503238,-1.0625 -1.124013,-1.0625 l -19.108223,0 z"
|
||||
style="opacity:0.2;fill:#fffffe;fill-opacity:1;stroke:none" />
|
||||
<path
|
||||
id="rect4291-2-7"
|
||||
d="m 23.01125,29.187499 c 0.61992,0 1.1225,-0.4744 1.1225,-1.0625 l 0,-0.2813 c 0,0.5881 -0.50258,1.0625 -1.1225,1.0625 l -19.0825,0 c -0.619919,0 -1.1225,-0.4744 -1.1225,-1.0625 l 0,0.2813 c 0,0.5881 0.502581,1.0625 1.1225,1.0625 l 19.0825,0 z"
|
||||
style="opacity:0.2;fill:#01579b;fill-opacity:1;stroke:none"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer3"
|
||||
inkscape:label="Hints"
|
||||
style="display:none">
|
||||
<rect
|
||||
transform="matrix(0,1,-1,0,0,0)"
|
||||
y="-18.870625"
|
||||
x="6.7400002"
|
||||
height="10.791246"
|
||||
width="13.47"
|
||||
id="rect4387-7"
|
||||
style="opacity:0.2;fill:#f4511e;fill-opacity:1;stroke:none" />
|
||||
<rect
|
||||
y="8.0793772"
|
||||
x="6.7400002"
|
||||
height="10.791246"
|
||||
width="13.47"
|
||||
id="rect4387"
|
||||
style="opacity:0.2;fill:#004d40;fill-opacity:1;stroke:none" />
|
||||
<rect
|
||||
transform="matrix(0,1,-1,0,0,0)"
|
||||
y="-19.64875"
|
||||
x="7.3012505"
|
||||
height="12.347499"
|
||||
width="12.3475"
|
||||
id="rect4387-7-8"
|
||||
style="opacity:0.2;fill:#bf360c;fill-opacity:1;stroke:none" />
|
||||
</g>
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
id="layer2"
|
||||
inkscape:label="Icon"
|
||||
style="display:none">
|
||||
<g
|
||||
id="g4265"
|
||||
transform="matrix(0.98677663,0,0,0.98677663,0.18958314,-1011.6834)">
|
||||
<path
|
||||
transform="matrix(1.6216435,0,0,1.6975098,-10.365977,1013.2518)"
|
||||
d="m 18.11961,17.851526 c 0,0.521716 -0.44272,0.944651 -0.988844,0.944651 -0.546124,0 -0.988845,-0.422935 -0.988845,-0.944651 0,-0.521716 0.442721,-0.94465 0.988845,-0.94465 0.546124,0 0.988844,0.422934 0.988844,0.94465 z"
|
||||
sodipodi:ry="0.94465041"
|
||||
sodipodi:rx="0.98884457"
|
||||
sodipodi:cy="17.851526"
|
||||
sodipodi:cx="17.130766"
|
||||
id="path4223"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
sodipodi:type="arc" />
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
id="path4225"
|
||||
sodipodi:cx="17.130766"
|
||||
sodipodi:cy="17.851526"
|
||||
sodipodi:rx="0.98884457"
|
||||
sodipodi:ry="0.94465041"
|
||||
d="m 18.11961,17.851526 c 0,0.521716 -0.44272,0.944651 -0.988844,0.944651 -0.546124,0 -0.988845,-0.422935 -0.988845,-0.944651 0,-0.521716 0.442721,-0.94465 0.988845,-0.94465 0.546124,0 0.988844,0.422934 0.988844,0.94465 z"
|
||||
transform="matrix(1.6216435,0,0,1.6975098,-8.819181,1005.8714)" />
|
||||
<path
|
||||
transform="matrix(1.6216435,0,0,1.6975098,-13.046197,1009.3886)"
|
||||
d="m 18.11961,17.851526 c 0,0.521716 -0.44272,0.944651 -0.988844,0.944651 -0.546124,0 -0.988845,-0.422935 -0.988845,-0.944651 0,-0.521716 0.442721,-0.94465 0.988845,-0.94465 0.546124,0 0.988844,0.422934 0.988844,0.94465 z"
|
||||
sodipodi:ry="0.94465041"
|
||||
sodipodi:rx="0.98884457"
|
||||
sodipodi:cy="17.851526"
|
||||
sodipodi:cx="17.130766"
|
||||
id="path4227"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
sodipodi:type="arc" />
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
id="path4229"
|
||||
sodipodi:cx="17.130766"
|
||||
sodipodi:cy="17.851526"
|
||||
sodipodi:rx="0.98884457"
|
||||
sodipodi:ry="0.94465041"
|
||||
d="m 18.11961,17.851526 c 0,0.521716 -0.44272,0.944651 -0.988844,0.944651 -0.546124,0 -0.988845,-0.422935 -0.988845,-0.944651 0,-0.521716 0.442721,-0.94465 0.988845,-0.94465 0.546124,0 0.988844,0.422934 0.988844,0.94465 z"
|
||||
transform="matrix(1.6216435,0,0,1.6975098,-20.186822,1010.0605)" />
|
||||
<path
|
||||
transform="translate(0,1025.4122)"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4231"
|
||||
d="m 7.5931732,14.951441 7.1406248,-0.6719"
|
||||
style="fill:#ffffff;stroke:#ffffff;stroke-width:1.01340055px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
transform="translate(0,1025.4122)"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4233"
|
||||
d="m 18.960814,10.762341 -4.227016,3.5172"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:1.01340055px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
transform="translate(0,1025.4122)"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4235"
|
||||
d="m 17.414018,18.142741 -2.68022,-3.8632"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:1.01340055px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
transform="matrix(1.0144252,0,0,1.0144252,-0.19421514,1025.2177)"
|
||||
d="m 19.590924,13.4839 c 0,3.38404 -2.743306,6.127346 -6.127346,6.127346 -3.38404,0 -6.1273458,-2.743306 -6.1273458,-6.127346 0,-3.38404 2.7433058,-6.127346 6.1273458,-6.127346 3.38404,0 6.127346,2.743306 6.127346,6.127346 z"
|
||||
sodipodi:ry="6.127346"
|
||||
sodipodi:rx="6.127346"
|
||||
sodipodi:cy="13.4839"
|
||||
sodipodi:cx="13.463578"
|
||||
id="path4253"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:0.99899;stroke-opacity:1"
|
||||
sodipodi:type="arc" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 8.2 KiB |
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Thanks to t184256
|
||||
|
||||
|
||||
for SVG in svgs/*.svg; do
|
||||
N=$(basename $SVG .svg)
|
||||
inkscape -f $SVG -w 48 -h 48 -e \
|
||||
theme/src/main/assets/icons/res/test/drawable-mdpi/$N.png
|
||||
inkscape -f $SVG -w 72 -h 72 -e \
|
||||
theme/src/main/assets/icons/res/test/drawable-hdpi/$N.png
|
||||
inkscape -f $SVG -w 96 -h 96 -e \
|
||||
theme/src/main/assets/icons/res/test/drawable-xhdpi/$N.png
|
||||
inkscape -f $SVG -w 144 -h 144 -e \
|
||||
theme/src/main/assets/icons/res/test/drawable-xxhdpi/$N.png
|
||||
inkscape -f $SVG -w 192 -h 192 -e \
|
||||
theme/src/main/assets/icons/res/test/drawable-xxxhdpi/$N.png
|
||||
done
|
Loading…
Reference in New Issue