convert to using VectorDrawable for two files

Proof-of-concept. I hate that this can't be automated readily using
stuff in ubuntu, but we'll see how it works.
This commit is contained in:
Eric House 2020-03-18 12:51:39 -07:00
parent 251cbfefd5
commit 197c7e61b0
6 changed files with 53 additions and 9 deletions

View file

@ -499,7 +499,7 @@ public class ConnStatusHandler {
{
boolean showSuccesses = s_showSuccesses[isIn? SUCCESS_IN : SUCCESS_OUT];
int color = showSuccesses ? ORANGE : Color.WHITE;
int arrowID = isIn ? R.drawable.in_arrow__gen : R.drawable.out_arrow__gen;
int arrowID = isIn ? R.drawable.ic_in_arrow : R.drawable.ic_out_arrow;
drawIn( canvas, res, arrowID, rect, color );
}

View file

@ -0,0 +1,23 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="195.92358dp"
android:height="79.11178dp"
android:viewportWidth="195.92358"
android:viewportHeight="79.11178">
<path
android:pathData="M10.958,11.225L187.089,11.225v24.856l-124.013,0.267 0.267,33.141z"
android:strokeAlpha="1"
android:strokeLineJoin="miter"
android:strokeWidth="0.26458332"
android:fillColor="#ffffff"
android:strokeColor="#000000"
android:fillAlpha="1"
android:strokeLineCap="butt"/>
<path
android:pathData="M55.592,38.754Z"
android:strokeAlpha="1"
android:strokeLineJoin="miter"
android:strokeWidth="0.26458332"
android:fillColor="#00000000"
android:strokeColor="#000000"
android:strokeLineCap="butt"/>
</vector>

View file

@ -0,0 +1,23 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="195.92358dp"
android:height="79.11178dp"
android:viewportWidth="195.92358"
android:viewportHeight="79.11178">
<path
android:pathData="M187.089,69.49L10.958,69.49L10.958,44.634L134.971,44.367 134.704,11.225Z"
android:strokeAlpha="1"
android:strokeLineJoin="miter"
android:strokeWidth="0.26458332"
android:fillColor="#ffffff"
android:strokeColor="#000000"
android:fillAlpha="1"
android:strokeLineCap="butt"/>
<path
android:pathData="M55.592,38.754Z"
android:strokeAlpha="1"
android:strokeLineJoin="miter"
android:strokeWidth="0.26458332"
android:fillColor="#00000000"
android:strokeColor="#000000"
android:strokeLineCap="butt"/>
</vector>

View file

@ -26,7 +26,7 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.9899495"
inkscape:cx="61.690345"
inkscape:cx="-143.37062"
inkscape:cy="51.719447"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
@ -54,7 +54,7 @@
id="layer1"
transform="translate(-6.7984033,-83.405656)">
<path
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 17.756454,94.630975 H 193.88707 v 24.856065 l -124.013059,0.26726 0.267269,33.14143 z"
id="path113"
inkscape:connector-curvature="0"

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -26,7 +26,7 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.9899495"
inkscape:cx="61.690345"
inkscape:cx="-143.37062"
inkscape:cy="51.719447"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
@ -54,14 +54,14 @@
id="layer1"
transform="translate(-6.7984033,-83.405656)">
<path
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 193.88707,151.30822 H 17.756454 v -24.85607 l 124.013056,-0.26726 -0.26727,-33.141416 z"
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 193.88707,152.89573 H 17.756455 V 128.03966 L 141.76951,127.7724 141.50224,94.630975 Z"
id="path113"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc" />
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 62.390464,120.57222 Z"
d="M 62.390464,122.15973 Z"
id="path136"
inkscape:connector-curvature="0" />
</g>

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -15,10 +15,8 @@ SRC_SVGS = \
down.svg \
download.svg \
email.svg \
in_arrow.svg \
multigame.svg \
new_group.svg \
out_arrow.svg \
prefs.svg \
relabel.svg \
rematch.svg \