1
0
Fork 0
mirror of https://github.com/nextcloud/android.git synced 2024-12-04 11:06:20 +01:00

resize images to support 4.x with png instead of svg

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2018-08-14 10:31:32 +02:00
parent b24f6c2d33
commit 8a1fa5db93
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
7 changed files with 49 additions and 48 deletions

View file

@ -91,7 +91,6 @@ android {
testInstrumentationRunnerArgument "TEST_SERVER_URL", "\"$System.env.OCTEST_SERVER_BASE_URL\""
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
versionCode versionMajor * 10000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild

View file

@ -6,9 +6,9 @@
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"
height="16"
viewBox="0 0 16 16"
width="16"
height="128"
viewBox="0 0 128 128"
width="128"
version="1.1"
id="svg4"
sodipodi:docname="first_run_files.svg"
@ -37,20 +37,20 @@
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1600"
inkscape:window-height="835"
inkscape:window-height="871"
id="namedview6"
showgrid="false"
inkscape:pagecheckerboard="true"
inkscape:zoom="14.75"
inkscape:cx="-3.8305085"
inkscape:cy="8"
inkscape:window-x="0"
inkscape:zoom="3.6875"
inkscape:cx="82.000293"
inkscape:cy="51.757595"
inkscape:window-x="1600"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4"/>
<path
fill="#0082c9"
d="m1.5 2c-0.25 0-0.5 0.25-0.5 0.5v11c0 0.26 0.24 0.5 0.5 0.5h13c0.26 0 0.5-0.241 0.5-0.5v-9c0-0.25-0.25-0.5-0.5-0.5h-6.5l-2-2h-4.5zm8.75 3.5a1.25 1.25 0 0 1 1.25 1.25 1.25 1.25 0 0 1 -1.25 1.25 1.25 1.25 0 0 1 -0.8008 -0.291l-2.4512 1.2265a1.25 1.25 0 0 1 0.002 0.0645 1.25 1.25 0 0 1 -0.0039 0.0645l2.4531 1.2265a1.25 1.25 0 0 1 0.8008 -0.291 1.25 1.25 0 0 1 1.25 1.25 1.25 1.25 0 0 1 -1.25 1.25 1.25 1.25 0 0 1 -1.25 -1.25 1.25 1.25 0 0 1 0.0039 -0.064l-2.4531-1.227a1.25 1.25 0 0 1 -0.8008 0.291 1.25 1.25 0 0 1 -1.25 -1.25 1.25 1.25 0 0 1 1.25 -1.25 1.25 1.25 0 0 1 0.8008 0.291l2.4512-1.2265a1.25 1.25 0 0 1 -0.002 -0.0645 1.25 1.25 0 0 1 1.25 -1.25z"
d="M 5.5,10 C 3.25,10 1,12.25 1,14.5 v 99 c 0,2.34 2.16,4.5 4.5,4.5 h 117 c 2.34,0 4.5,-2.169 4.5,-4.5 v -81 C 127,30.25 124.75,28 122.5,28 H 64 L 46,10 Z M 84.25,41.5 A 11.25,11.25 0 0 1 95.5,52.75 11.25,11.25 0 0 1 84.25,64 11.25,11.25 0 0 1 77.0428,61.381 L 54.982,72.4195 A 11.25,11.25 0 0 1 55,73 11.25,11.25 0 0 1 54.9649,73.5805 L 77.0428,84.619 A 11.25,11.25 0 0 1 84.25,82 11.25,11.25 0 0 1 95.5,93.25 11.25,11.25 0 0 1 84.25,104.5 11.25,11.25 0 0 1 73,93.25 11.25,11.25 0 0 1 73.0351,92.674 L 50.9572,81.631 A 11.25,11.25 0 0 1 43.75,84.25 11.25,11.25 0 0 1 32.5,73 11.25,11.25 0 0 1 43.75,61.75 11.25,11.25 0 0 1 50.9572,64.369 L 73.018,53.3305 A 11.25,11.25 0 0 1 73,52.75 11.25,11.25 0 0 1 84.25,41.5 Z"
id="path2"
style="fill:#ffffff;fill-opacity:1"/>
style="fill:#ffffff;fill-opacity:1;stroke-width:9"
inkscape:connector-curvature="0"/>
</svg>

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

@ -7,8 +7,8 @@
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
viewbox="0 0 16 16"
height="16"
width="16"
height="128"
width="128"
version="1.1"
id="svg4"
sodipodi:docname="first_run_groupware.svg"
@ -41,16 +41,16 @@
id="namedview6"
showgrid="false"
inkscape:pagecheckerboard="true"
inkscape:zoom="14.75"
inkscape:cx="0.54237288"
inkscape:cy="8"
inkscape:zoom="2.6074563"
inkscape:cx="-6.2650304"
inkscape:cy="38.828402"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg4"/>
<path
fill="#0082c9"
d="m9 1c-1.746 0-3 1.43-3 2.8 0 1.4 0.1 2.4 0.8 3.5 0.224 0.29 0.485 0.35 0.7 0.6 0.135 0.5 0.24 1 0.1 1.5-0.436 0.153-0.85 0.332-1.27 0.5-0.51-0.273-1.1-0.5-1.61-0.7-0.07-0.28-0.02-0.487 0.05-0.75 0.12-0.125 0.23-0.18 0.36-0.3 0.37-0.45 0.39-1.21 0.39-1.75 0-0.8-0.72-1.4-1.5-1.4-0.87 0-1.5 0.72-1.5 1.4h-0.02c0 0.7 0.05 1.2 0.4 1.75 0.1 0.15 0.242 0.175 0.35 0.3 0.0674 0.25 0.121 0.5 0.05 0.75-0.64 0.223-1.244 0.5-1.8 0.8-0.42 0.3-0.233 0.182-0.5 1.15-0.124 0.5 1.3 0.73 2.32 0.81-0.05 0.275-0.12 0.64-0.32 1.34-0.32 1.25 4.353 1.7 6 1.7 2.43 0 6.313-0.456 5.98-1.7-0.52-1.94-0.208-1.71-0.98-2.3-1.09-0.654-2.452-1.167-3.6-1.6-0.15-0.557-0.04-0.97 0.1-1.5 0.235-0.25 0.5-0.36 0.72-0.6 0.69-0.884 0.78-2.424 0.78-3.5 0-1.586-1.43-2.8-3-2.8z"
d="m 73.014263,1.1355933 c -15.68018,0 -26.941889,12.8423007 -26.941889,25.1457627 0,12.572882 0.898063,21.553511 7.184504,31.432204 2.011661,2.604382 4.355605,3.14322 6.28644,5.388377 1.212385,4.490315 2.155351,8.98063 0.898063,13.470945 -3.915554,1.374036 -7.633535,2.981569 -11.405399,4.490314 -4.580121,-2.451711 -9.878693,-4.490314 -14.458814,-6.28644 -0.628644,-2.514577 -0.179612,-4.373567 0.449032,-6.735472 1.077675,-1.122579 2.065545,-1.616514 3.233026,-2.694189 3.322833,-4.041284 3.502446,-10.866562 3.502446,-15.716102 0,-7.184504 -6.466053,-12.572881 -13.470944,-12.572881 -7.813148,0 -13.470945,6.466053 -13.470945,12.572881 h -0.179612 c 0,6.286441 0.449031,10.776755 3.592252,15.716102 0.898062,1.347094 2.173312,1.57161 3.14322,2.694189 0.605294,2.245157 1.086656,4.490314 0.449031,6.735472 -5.747603,2.00268 -11.171903,4.490315 -16.1651327,7.184503 -3.7718644,2.694189 -2.0924867,1.634475 -4.4903148,10.327724 -1.11359806,4.490315 11.6748185,6.55586 20.8350605,7.27431 -0.449032,2.469677 -1.077676,5.747607 -2.873802,12.034047 -2.873801,11.22579 39.092681,15.26707 53.883778,15.26707 21.822929,0 56.694707,-4.09517 53.704157,-15.26707 C 122.0485,94.174916 124.85045,96.24046 117.91741,90.941889 108.12852,85.068557 95.896907,80.461494 85.587144,76.572882 84.24005,71.570671 85.227919,67.861671 86.485207,63.101937 c 2.110448,-2.245157 4.490315,-3.233026 6.466053,-5.388377 6.196635,-7.938877 7.004891,-21.769046 7.004891,-31.432204 0,-14.243278 -12.8423,-25.1457627 -26.941888,-25.1457627 z"
id="path2"
style="fill:#ffffff;fill-opacity:1"/>
style="fill:#ffffff;fill-opacity:1;stroke-width:8.98062992"
inkscape:connector-curvature="0"/>
</svg>

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View file

@ -8,9 +8,9 @@
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="16mm"
height="16mm"
viewBox="0 0 16 16"
width="128mm"
height="128mm"
viewBox="0 0 128 128"
version="1.1"
id="svg829"
inkscape:version="0.92.2 2405546, 2018-03-11"
@ -24,9 +24,9 @@
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.6"
inkscape:cx="-19.200952"
inkscape:cy="38.084396"
inkscape:zoom="0.98994949"
inkscape:cx="297.07973"
inkscape:cy="366.5173"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
@ -56,11 +56,11 @@
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-15.580506,-164.12649)">
transform="translate(-15.580506,-52.12649)">
<path
inkscape:connector-curvature="0"
style="fill:#ffffff;stroke-width:0.13229023"
d="m 23.579679,165.51155 a 6.6138496,6.6139445 0 0 0 -6.613756,6.61414 6.6138496,6.6139445 0 0 0 6.613756,6.61394 6.6138496,6.6139445 0 0 0 3.430853,-0.96761 c 0.812866,0.32302 2.633614,1.28133 3.066959,0.86739 0.452829,-0.43245 -0.531627,-2.46778 -0.767642,-3.2241 a 6.6138496,6.6139445 0 0 0 0.88351,-3.28968 6.6138496,6.6139445 0 0 0 -6.613662,-6.61385 z m 7.69e-4,2.51456 a 4.1009972,4.1010914 0 0 1 4.100984,4.10109 4.1009972,4.1010914 0 0 1 -4.100997,4.10081 4.1009972,4.1010914 0 0 1 -4.100997,-4.10081 4.1009972,4.1010914 0 0 1 4.100997,-4.10109 z"
style="fill:#ffffff;stroke-width:1.26614535"
d="m 79.572589,52.815123 a 63.300934,63.301842 0 0 0 -63.300038,63.303717 63.300934,63.301842 0 0 0 63.300038,63.3018 63.300934,63.301842 0 0 0 32.836581,-9.26097 c 7.77991,3.09162 25.20623,12.26357 29.35376,8.30176 4.33401,-4.13896 -5.08818,-23.61904 -7.34707,-30.85775 A 63.300934,63.301842 0 0 0 142.8719,116.11826 63.300934,63.301842 0 0 0 79.572762,52.817324 Z m 0.0074,24.06677 A 39.250508,39.251409 0 0 1 118.83033,116.13329 39.250508,39.251409 0 0 1 79.579825,155.382 39.250508,39.251409 0 0 1 40.329319,116.13329 39.250508,39.251409 0 0 1 79.579825,76.881893 Z"
id="path2"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View file

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="16dp"
android:height="16dp"
android:viewportWidth="16"
android:viewportHeight="16">
android:width="128dp"
android:height="128dp"
android:viewportWidth="128"
android:viewportHeight="128">
<path
android:fillColor="#ffffff"
android:pathData="M1.5,2 C1.25,2,1,2.25,1,2.5 L1,13.5 C1,13.76,1.24,14,1.5,14 L14.5,14 C14.76,14,15,13.759,15,13.5 L15,4.5 C15,4.25,14.75,4,14.5,4 L8,4 L6,2 L1.5,2 Z M10.25,5.5 A1.25,1.25,0,0,1,11.5,6.75 A1.25,1.25,0,0,1,10.25,8 A1.25,1.25,0,0,1,9.4492,7.709 L6.998,8.9355 A1.25,1.25,0,0,1,7,9 A1.25,1.25,0,0,1,6.9961,9.0645 L9.4492,10.291 A1.25,1.25,0,0,1,10.25,10 A1.25,1.25,0,0,1,11.5,11.25 A1.25,1.25,0,0,1,10.25,12.5 A1.25,1.25,0,0,1,9,11.25 A1.25,1.25,0,0,1,9.0039,11.186 L6.5508,9.959 A1.25,1.25,0,0,1,5.75,10.25 A1.25,1.25,0,0,1,4.5,9 A1.25,1.25,0,0,1,5.75,7.75 A1.25,1.25,0,0,1,6.5508,8.041 L9.002,6.8145 A1.25,1.25,0,0,1,9,6.75 A1.25,1.25,0,0,1,10.25,5.5 Z"/>
android:strokeWidth="9"
android:pathData="M 5.5,10 C 3.25,10 1,12.25 1,14.5 v 99 c 0,2.34 2.16,4.5 4.5,4.5 h 117 c 2.34,0 4.5,-2.169 4.5,-4.5 v -81 C 127,30.25 124.75,28 122.5,28 H 64 L 46,10 Z M 84.25,41.5 A 11.25,11.25 0 0 1 95.5,52.75 11.25,11.25 0 0 1 84.25,64 11.25,11.25 0 0 1 77.0428,61.381 L 54.982,72.4195 A 11.25,11.25 0 0 1 55,73 11.25,11.25 0 0 1 54.9649,73.5805 L 77.0428,84.619 A 11.25,11.25 0 0 1 84.25,82 11.25,11.25 0 0 1 95.5,93.25 11.25,11.25 0 0 1 84.25,104.5 11.25,11.25 0 0 1 73,93.25 11.25,11.25 0 0 1 73.0351,92.674 L 50.9572,81.631 A 11.25,11.25 0 0 1 43.75,84.25 11.25,11.25 0 0 1 32.5,73 11.25,11.25 0 0 1 43.75,61.75 11.25,11.25 0 0 1 50.9572,64.369 L 73.018,53.3305 A 11.25,11.25 0 0 1 73,52.75 11.25,11.25 0 0 1 84.25,41.5 Z"/>
</vector>

View file

@ -1,11 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="16dp"
android:height="16dp"
android:viewportWidth="16"
android:viewportHeight="16">
android:width="128dp"
android:height="128dp"
android:viewportWidth="128"
android:viewportHeight="128">
<path
android:fillColor="#ffffff"
android:pathData="M9,1 C7.254,1,6,2.43,6,3.8 C6,5.2,6.1,6.2,6.8,7.3 C7.024,7.59,7.285,7.65,7.5,7.9 C7.635,8.4,7.74,8.9,7.6,9.4 C7.164,9.553,6.75,9.732,6.33,9.9 C5.82,9.627,5.23,9.4,4.72,9.2 C4.65,8.92,4.7,8.713,4.77,8.45 C4.89,8.325,5,8.27,5.13,8.15 C5.5,7.7,5.52,6.94,5.52,6.4 C5.52,5.6,4.8,5,4.02,5 C3.15,5,2.52,5.72,2.52,6.4 L2.5,6.4 C2.5,7.1,2.55,7.6,2.9,8.15 C3,8.3,3.142,8.325,3.25,8.45 C3.3174,8.7,3.371,8.95,3.3,9.2 C2.66,9.423,2.056,9.7,1.5,10 C1.08,10.3,1.267,10.182,1,11.15 C0.876,11.65,2.3,11.88,3.32,11.96 C3.27,12.235,3.2,12.6,3,13.3 C2.68,14.55,7.353,15,9,15 C11.43,15,15.313,14.544,14.98,13.3 C14.46,11.36,14.772,11.59,14,11 C12.91,10.346,11.548,9.833,10.4,9.4 C10.25,8.843,10.36,8.43,10.5,7.9 C10.735,7.65,11,7.54,11.22,7.3 C11.91,6.416,12,4.876,12,3.8 C12,2.214,10.57,1,9,1 Z"/>
</vector>
android:strokeWidth="8.98062992"
android:pathData="M 73.014263,1.1355933 c -15.68018,0 -26.941889,12.8423007 -26.941889,25.1457627 0,12.572882 0.898063,21.553511 7.184504,31.432204 2.011661,2.604382 4.355605,3.14322 6.28644,5.388377 1.212385,4.490315 2.155351,8.98063 0.898063,13.470945 -3.915554,1.374036 -7.633535,2.981569 -11.405399,4.490314 -4.580121,-2.451711 -9.878693,-4.490314 -14.458814,-6.28644 -0.628644,-2.514577 -0.179612,-4.373567 0.449032,-6.735472 1.077675,-1.122579 2.065545,-1.616514 3.233026,-2.694189 3.322833,-4.041284 3.502446,-10.866562 3.502446,-15.716102 0,-7.184504 -6.466053,-12.572881 -13.470944,-12.572881 -7.813148,0 -13.470945,6.466053 -13.470945,12.572881 h -0.179612 c 0,6.286441 0.449031,10.776755 3.592252,15.716102 0.898062,1.347094 2.173312,1.57161 3.14322,2.694189 0.605294,2.245157 1.086656,4.490314 0.449031,6.735472 -5.747603,2.00268 -11.171903,4.490315 -16.1651327,7.184503 -3.7718644,2.694189 -2.0924867,1.634475 -4.4903148,10.327724 -1.11359806,4.490315 11.6748185,6.55586 20.8350605,7.27431 -0.449032,2.469677 -1.077676,5.747607 -2.873802,12.034047 -2.873801,11.22579 39.092681,15.26707 53.883778,15.26707 21.822929,0 56.694707,-4.09517 53.704157,-15.26707 C 122.0485,94.174916 124.85045,96.24046 117.91741,90.941889 108.12852,85.068557 95.896907,80.461494 85.587144,76.572882 84.24005,71.570671 85.227919,67.861671 86.485207,63.101937 c 2.110448,-2.245157 4.490315,-3.233026 6.466053,-5.388377 6.196635,-7.938877 7.004891,-21.769046 7.004891,-31.432204 0,-14.243278 -12.8423,-25.1457627 -26.941888,-25.1457627 z"/>
</vector>

View file

@ -1,16 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="16dp"
android:height="16dp"
android:viewportWidth="16"
android:viewportHeight="16">
android:width="128dp"
android:height="128dp"
android:viewportWidth="128"
android:viewportHeight="128">
<group
android:translateX="-15.580506"
android:translateY="-164.12649">
android:translateY="-52.12649">
<path
android:fillColor="#ffffff"
android:strokeWidth="0.13229023"
android:pathData="M 23.579679,165.51155 a 6.6138496,6.6139445 0 0 0 -6.613756,6.61414 6.6138496,6.6139445 0 0 0 6.613756,6.61394 6.6138496,6.6139445 0 0 0 3.430853,-0.96761 c 0.812866,0.32302 2.633614,1.28133 3.066959,0.86739 0.452829,-0.43245 -0.531627,-2.46778 -0.767642,-3.2241 a 6.6138496,6.6139445 0 0 0 0.88351,-3.28968 6.6138496,6.6139445 0 0 0 -6.613662,-6.61385 z m 0.000769,2.51456 a 4.1009972,4.1010914 0 0 1 4.100984,4.10109 4.1009972,4.1010914 0 0 1 -4.100997,4.10081 4.1009972,4.1010914 0 0 1 -4.100997,-4.10081 4.1009972,4.1010914 0 0 1 4.100997,-4.10109 z"/>
android:strokeWidth="1.26614535"
android:pathData="M 79.572589,52.815123 a 63.300934,63.301842 0 0 0 -63.300038,63.303717 63.300934,63.301842 0 0 0 63.300038,63.3018 63.300934,63.301842 0 0 0 32.836581,-9.26097 c 7.77991,3.09162 25.20623,12.26357 29.35376,8.30176 4.33401,-4.13896 -5.08818,-23.61904 -7.34707,-30.85775 A 63.300934,63.301842 0 0 0 142.8719,116.11826 63.300934,63.301842 0 0 0 79.572762,52.817324 Z m 0.0074,24.06677 A 39.250508,39.251409 0 0 1 118.83033,116.13329 39.250508,39.251409 0 0 1 79.579825,155.382 39.250508,39.251409 0 0 1 40.329319,116.13329 39.250508,39.251409 0 0 1 79.579825,76.881893 Z"/>
</group>
</vector>
</vector>