Permalink
Browse files

Add custom launcher icon for GalleryArtProvider

  • Loading branch information...
ianhanniballake committed Sep 4, 2018
1 parent 20298d8 commit 8fdc5a613f033da44a056027d5bd10f0878c091c
@@ -31,6 +31,7 @@
<provider
android:name="com.google.android.apps.muzei.gallery.GalleryArtProvider"
android:authorities="com.google.android.apps.muzei.gallery.art"
android:icon="@drawable/gallery_ic_launcher"
android:label="@string/gallery_title"
android:description="@string/gallery_description"
android:permission="com.google.android.apps.muzei.api.ACCESS_PROVIDER">
@@ -0,0 +1,25 @@
<!--
Copyright 2017 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<gradient
xmlns:android="http://schemas.android.com/apk/res/android"
android:endColor="#0000"
android:endX="48"
android:endY="48"
android:startColor="#F000"
android:startX="12"
android:startY="12"
android:type="linear"/>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/gallery_ic_launcher_background"/>
<foreground android:drawable="@drawable/gallery_ic_launcher_foreground"/>
</adaptive-icon>
@@ -0,0 +1,35 @@
<!--
Copyright 2018 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportHeight="108"
android:viewportWidth="108">
<path
android:fillColor="#3c6cae"
android:pathData="M0 108h108V0H0z"/>
<path
android:fillColor="#f0bd1a"
android:pathData="M 87.232 62.288 C 87.232 67.54 82.969 71.799 77.711 71.799 C 72.452 71.799 68.19 67.54 68.19 62.288 C 68.19 57.035 72.452 52.776 77.71 52.776 C 82.97 52.776 87.232 57.036 87.232 62.288 Z M 59.415 23.196 C 59.415 29.379 54.398 34.392 48.208 34.392 C 42.018 34.392 37 29.379 37 23.196 C 37 17.013 42.019 12 48.208 12 C 54.398 12 59.415 17.013 59.415 23.196 Z M 26.415 95.196 C 26.415 100.826 21.846 105.392 16.208 105.392 C 10.57 105.392 6 100.827 6 95.196 C 6 89.566 10.57 85 16.208 85 C 21.846 85 26.415 89.565 26.415 95.196 Z M 96.428 108.196 C 96.428 117.692 88.722 125.392 79.214 125.392 C 69.708 125.392 62 117.692 62 108.196 C 62 98.699 69.708 91 79.214 91 C 88.722 91 96.428 98.7 96.428 108.196 Z M 29.428 -7.804 C 29.428 1.692 21.722 9.392 12.214 9.392 C 2.708 9.392 -5 1.692 -5 -7.804 C -5 -17.301 2.708 -25 12.214 -25 C 21.722 -25 29.428 -17.3 29.428 -7.804 Z M 133.428 70.196 C 133.428 79.692 125.722 87.392 116.214 87.392 C 106.708 87.392 99 79.692 99 70.196 C 99 60.699 106.708 53 116.214 53 C 125.722 53 133.428 60.7 133.428 70.196 Z"/>
<path
android:fillColor="#5999c6"
android:pathData="M 0 82.5 C 23.037 82.5 56.363 71.858 84.402 56.619 C 97.997 49.229 109.076 47.821 116.75 50.584 L 127.25 21.416 C 110.664 15.446 90.53 18.005 69.598 29.381 C 56.253 36.635 41.431 42.688 27.966 46.618 C 17.333 49.72 6 46.618 0 43 L 0 82.5 Z"/>
<path
android:fillColor="#1f292a"
android:pathData="M 49.304 87.727 L 49.235 86.582 L 49.15 85.54 A 53.286,53.286,0,0,0,48.975,83.783 C 48.92 83.273 48.86 82.84 48.813 82.488 A 31.543,31.543,0,0,0,48.652,81.41 C 48.542 81.775 48.542 81.775 48.354 82.458 L 48.012 83.712 C 47.879 84.205 47.726 84.772 47.562 85.405 L 47.006 87.492 C 46.801 88.246 46.58 89.061 46.346 89.932 C 45.859 91.664 43.958 97.764 43.554 98.835 C 44.554 87.368 44.93 78.925 44.721 72.516 C 44.771 69.728 44.678 66.801 44.223 63.763 L 44.136 63.16 L 44.026 62.554 C 43.947 62.15 43.884 61.744 43.789 61.34 C 43.699 60.936 43.612 60.529 43.515 60.124 C 43.408 59.722 43.301 59.319 43.192 58.916 C 42.742 57.311 42.175 55.752 41.588 54.278 A 158.352,158.352,0,0,0,39.786,50.048 A 202.889,202.889,0,0,1,38.078,46.049 L 37.671 45.062 L 37.281 44.074 C 37.011 43.419 36.768 42.76 36.518 42.106 C 36.267 41.453 36.032 40.793 35.79 40.144 L 35.711 39.93 L 35.468 39.216 L 35.298 38.711 L 35.212 38.458 C 34.978 37.648 34.782 37.101 34.636 36.475 C 34.559 36.169 34.474 35.866 34.403 35.562 L 34.201 34.652 C 34.168 34.502 34.13 34.351 34.102 34.199 L 34.022 33.746 L 33.855 32.843 L 33.725 31.946 A 41.701,41.701,0,0,0,33.66,31.5 A 365.868,365.868,0,0,0,33.512,30.17 C 33.489 29.875 33.468 29.584 33.444 29.293 L 33.41 28.859 C 33.403 28.715 33.398 28.569 33.392 28.426 L 33.352 27.568 C 33.349 27.001 33.324 26.438 33.341 25.887 L 33.352 25.064 L 33.387 24.257 C 33.479 22.117 33.747 20.14 34.041 18.377 C 34.351 16.617 34.717 15.077 35.057 13.808 C 35.146 13.493 35.225 13.19 35.31 12.911 C 35.392 12.628 35.468 12.362 35.545 12.118 C 35.698 11.625 35.835 11.207 35.948 10.867 C 36.18 10.189 36.32 9.825 36.32 9.825 C 36.32 9.825 36.029 10.083 35.534 10.62 C 35.287 10.888 34.986 11.225 34.656 11.638 C 34.314 12.047 33.949 12.534 33.55 13.093 A 33.12,33.12,0,0,0,31,17.355 C 30.788 17.788 30.561 18.236 30.359 18.709 L 30.043 19.428 L 29.743 20.177 C 29.531 20.682 29.36 21.215 29.161 21.757 L 28.894 22.59 A 17.3,17.3,0,0,0,28.64,23.447 L 28.396 24.333 L 28.181 25.246 L 28.072 25.71 L 27.982 26.181 C 27.922 26.501 27.86 26.819 27.8 27.143 C 27.747 27.467 27.7 27.796 27.652 28.128 L 27.579 28.628 L 27.525 29.135 L 27.418 30.163 C 27.398 30.508 27.378 30.858 27.356 31.21 L 27.324 31.741 C 27.318 31.918 27.318 32.096 27.314 32.275 C 27.311 32.634 27.306 32.995 27.304 33.357 L 27.334 34.455 C 27.343 34.64 27.349 34.823 27.356 35.009 C 27.366 35.195 27.384 35.379 27.396 35.566 C 27.426 35.937 27.458 36.311 27.487 36.688 C 27.528 37.063 27.583 37.438 27.63 37.817 C 27.712 38.562 27.875 39.372 28.025 40.168 C 28.045 40.264 28.063 40.377 28.082 40.459 C 28.181 40.892 28.22 41.066 28.258 41.241 L 28.377 41.765 L 28.439 42.026 L 28.534 42.376 C 28.732 43.096 28.912 43.824 29.129 44.55 A 21.533,21.533,0,0,1,28.989,57.314 C 27.948 60.555 26.881 64.568 26.567 68.17 C 26.052 74.052 26.2 81.836 27.077 93.246 C 27.002 93.039 25.483 87.618 25.109 85.074 A 69.81,69.81,0,0,1,24.421,77.574 C 24.32 75.143 24.321 72.812 24.372 70.644 C 24.422 68.475 24.522 66.469 24.629 64.679 C 24.675 63.783 24.74 62.945 24.795 62.165 C 24.844 61.383 24.915 60.669 24.961 60.017 L 25.221 56.98 L 25.321 55.893 C 25.104 56.209 25.104 56.209 24.741 56.825 C 24.558 57.133 24.339 57.515 24.094 57.97 C 23.844 58.425 23.577 58.956 23.281 59.552 C 22.98 60.149 22.682 60.822 22.351 61.555 A 70.042,70.042,0,0,0,21.364,63.963 A 58.594,58.594,0,0,0,19.439,69.925 A 57.191,57.191,0,0,0,17.989,77.268 A 49.458,49.458,0,0,0,17.604,85.765 C 17.729 88.75 19.102 108.962 22.352 111 C 25.602 113.038 23.348 112.39 23.889 113.051 C 24.429 113.712 24.999 114.351 25.602 114.961 A 25.178,25.178,0,0,0,29.598,118.287 C 30.338 118.777 31.12 119.227 31.962 119.631 C 32.805 120.036 33.709 120.383 34.727 120.634 C 35.237 120.758 35.775 120.855 36.351 120.908 C 36.928 120.958 37.549 120.96 38.203 120.882 A 7.646,7.646,0,0,0,39.515,120.604 L 39.68 120.553 C 39.79 120.517 39.786 120.517 39.8 120.512 L 39.923 120.464 C 39.977 120.444 39.843 120.49 40.053 120.416 L 40.209 120.35 A 8.481,8.481,0,0,0,41.741,119.503 A 10.396,10.396,0,0,0,43.971,117.393 C 44.551 116.654 45.012 115.913 45.395 115.186 C 45.775 114.458 46.085 113.74 46.355 113.038 C 46.62 112.334 46.838 111.645 47.032 110.967 C 47.414 109.612 48.572 101.418 48.773 100.164 A 47.79,47.79,0,0,0,49.211,96.556 C 49.4 94.252 49.437 92.16 49.398 90.31 A 59.375,59.375,0,0,0,49.304,87.727 Z"/>
</vector>
@@ -0,0 +1,35 @@
<!--
Copyright 2018 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:height="108dp"
android:viewportHeight="62"
android:viewportWidth="62"
android:width="108dp">
<group
android:translateX="19"
android:translateY="19">
<path
android:fillAlpha="0.2"
android:fillColor="@color/gallery_ic_launcher_shadow"
android:pathData="M21.5,3.0l21.5,21.5v18.5h-18.7l-21.5,-21.5v-15.5h1.2l3,3v8h14z"/>
<path
android:fillColor="#FFF"
android:pathData="M22,16L22,4c0,-1.1 -0.9,-2 -2,-2L8,2c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2zM11,12l2.03,2.71L16,11l4,5L8,16l3,-4zM2,6v14c0,1.1 0.9,2 2,2h14v-2L4,20L4,6L2,6z"/>
</group>
</vector>

0 comments on commit 8fdc5a6

Please sign in to comment.