Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update notification icon #193

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 29 additions & 10 deletions composeApp/src/commonMain/res/drawable/notification_icon.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">

<path
android:fillColor="#FF000000"
android:pathData="M15,1H9v2h6V1zM11,14h2V8h-2V14zM19.03,7.39l1.42,-1.42c-0.43,-0.51 -0.9,-0.99 -1.41,-1.41l-1.42,1.42C16.07,4.74 14.12,4 12,4c-4.97,0 -9,4.03 -9,9s4.02,9 9,9s9,-4.03 9,-9C21,10.88 20.26,8.93 19.03,7.39zM12,20c-3.87,0 -7,-3.13 -7,-7s3.13,-7 7,-7s7,3.13 7,7S15.87,20 12,20z" />

<vector
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:name="vector"
android:width="70dp"
android:height="87dp"
android:viewportWidth="70"
android:viewportHeight="87"
tools:ignore="VectorPath">
<path
android:name="path"
android:pathData="M 37.3 12.614 C 35.225 12.601 33.206 13.295 31.577 14.579 C 29.948 15.864 28.804 17.666 28.333 19.687 C 27.863 21.707 28.093 23.829 28.987 25.702 C 29.88 27.574 31.385 29.088 33.252 29.993 C 35.118 30.899 37.239 31.142 39.262 30.684 C 41.286 30.226 43.095 29.093 44.39 27.472 C 45.685 25.851 46.391 23.837 46.391 21.762 C 46.398 19.345 45.444 17.02 43.74 15.306 C 42.036 13.591 39.718 12.622 37.3 12.614 Z"
android:strokeColor="#adb5bd"
android:strokeWidth="4"/>
<path
android:name="path_1"
android:pathData="M 32.604 47.068 C 32.146 47.055 31.697 47.201 31.334 47.481 C 30.972 47.762 30.717 48.159 30.614 48.605 C 30.126 50.803 29.208 52.882 27.913 54.723 C 26.618 56.564 24.972 58.131 23.07 59.334 C 21.513 60.44 19.919 61.379 18.487 62.512 C 16.917 63.628 15.753 65.225 15.172 67.06 C 14.679 68.628 14.478 70.273 14.581 71.913 C 14.829 74.371 16.034 76.635 17.934 78.213 C 19.719 79.696 21.904 80.616 24.212 80.857 C 26.52 81.097 28.848 80.647 30.9 79.564 C 34.687 77.664 37.053 73.959 36.616 70.206 C 36.095 65.736 31.955 63.582 31.955 63.582 C 31.653 63.407 31.311 63.315 30.962 63.315 C 30.614 63.315 30.271 63.407 29.97 63.582 C 29.668 63.758 29.419 64.009 29.246 64.312 C 28.982 64.77 28.91 65.314 29.046 65.825 C 29.182 66.336 29.515 66.772 29.972 67.038 C 29.972 67.038 32.449 68.723 32.672 70.673 C 32.865 72.33 31.623 74.741 29.127 75.993 C 27.774 76.738 26.228 77.059 24.69 76.914 C 23.153 76.769 21.694 76.164 20.505 75.178 C 19.937 74.75 19.466 74.205 19.125 73.581 C 18.784 72.957 18.58 72.267 18.526 71.557 C 18.479 70.393 18.636 69.229 18.991 68.118 C 19.348 67.104 20.031 66.235 20.932 65.648 C 22.051 64.763 23.632 63.817 25.352 62.598 C 29.925 59.566 33.183 54.91 34.465 49.574 C 34.541 49.284 34.552 48.979 34.495 48.684 C 34.438 48.389 34.316 48.111 34.137 47.869 C 33.959 47.629 33.728 47.432 33.463 47.293 C 33.198 47.155 32.905 47.078 32.606 47.069 Z M 38.407 43.87 C 37.88 43.889 37.381 44.117 37.022 44.503 C 36.662 44.889 36.471 45.403 36.49 45.93 C 36.464 47.903 36.842 49.86 37.601 51.681 C 38.36 53.502 39.484 55.148 40.903 56.518 C 43.244 58.544 45.972 60.075 48.921 61.018 C 50.606 61.564 52.078 62.625 53.128 64.051 C 53.548 64.673 53.801 65.393 53.863 66.141 C 53.925 66.889 53.793 67.64 53.48 68.322 C 52.77 70.257 52.174 70.648 51.225 71.037 C 50.276 71.426 48.743 71.556 46.861 72.179 C 45.164 72.802 43.722 73.971 42.761 75.501 C 42.133 76.369 41.699 77.362 41.488 78.413 C 41.277 79.463 41.295 80.547 41.539 81.59 C 41.905 82.937 42.622 84.162 43.617 85.141 C 44.611 86.12 45.848 86.818 47.2 87.163 C 48.5 87.51 49.851 87.622 51.19 87.495 C 51.544 87.464 51.884 87.337 52.173 87.129 C 52.462 86.921 52.689 86.639 52.832 86.313 C 52.975 85.986 53.029 85.626 52.987 85.272 C 52.945 84.917 52.809 84.58 52.593 84.295 C 52.378 84.012 52.091 83.791 51.761 83.657 C 51.432 83.524 51.072 83.481 50.721 83.534 C 49.884 83.596 49.043 83.52 48.231 83.309 C 47.432 83.184 46.702 82.783 46.167 82.176 C 45.632 81.57 45.325 80.795 45.3 79.987 C 45.276 79.178 45.534 78.386 46.031 77.748 C 46.558 76.988 47.27 76.376 48.101 75.97 C 49.66 75.637 51.202 75.224 52.72 74.734 C 53.778 74.257 54.723 73.563 55.495 72.697 C 56.267 71.831 56.848 70.812 57.201 69.706 C 57.695 68.433 57.885 67.062 57.755 65.703 C 57.625 64.343 57.179 63.033 56.453 61.876 C 54.95 59.717 52.785 58.102 50.287 57.276 C 47.842 56.498 45.573 55.25 43.608 53.601 C 41.798 51.901 40.531 49.684 40.457 45.856 C 40.455 45.59 40.401 45.326 40.296 45.081 C 40.191 44.836 40.038 44.614 39.847 44.429 C 39.656 44.245 39.43 44.1 39.182 44.005 C 38.935 43.91 38.67 43.865 38.405 43.874 Z"
android:fillColor="#adb5bd"
android:strokeWidth="1"/>
<path
android:name="path_2"
android:pathData="M 36.377 0.013 C 32.884 -0.148 29.405 0.565 26.256 2.086 C 23.108 3.607 20.388 5.89 18.343 8.726 C 12.723 16.788 13.803 28.571 21.271 35.073 C 24.242 37.66 25.451 39.954 25.724 41.816 C 25.848 42.712 25.773 43.623 25.505 44.486 C 25.236 45.349 24.78 46.143 24.17 46.809 C 21.67 49.857 16.212 51.968 12.102 51.637 C 8.946 51.383 6.888 50.428 5.655 49.165 C 5.012 48.476 4.529 47.654 4.24 46.758 C 3.951 45.861 3.863 44.912 3.982 43.977 C 4.092 42.105 5.452 39.425 7.142 36.641 C 8.832 33.857 10.794 30.994 11.634 27.927 C 13.912 19.616 7.308 13.562 7.308 13.562 C 7.052 13.326 6.738 13.161 6.398 13.086 C 6.058 13.01 5.704 13.025 5.372 13.13 C 5.04 13.235 4.742 13.427 4.508 13.684 C 4.152 14.075 3.964 14.591 3.987 15.119 C 4.01 15.647 4.241 16.145 4.63 16.503 C 4.63 16.503 9.43 20.967 7.812 26.867 C 7.249 28.919 5.502 31.69 3.76 34.559 C 2.018 37.428 0.219 40.42 0.019 43.74 C -0.118 45.23 0.061 46.732 0.543 48.149 C 1.026 49.565 1.801 50.864 2.819 51.96 C 4.894 54.086 7.966 55.308 11.78 55.615 C 14.662 55.833 17.556 55.381 20.235 54.295 C 22.913 53.208 25.305 51.516 27.221 49.352 C 28.172 48.246 28.88 46.951 29.297 45.552 C 29.714 44.153 29.832 42.682 29.642 41.235 C 29.192 38.164 27.31 35.06 23.859 32.055 C 18.083 27.026 17.17 17.355 21.584 11.017 C 26.819 3.507 38.399 1.791 45.713 7.26 C 53.24 12.889 54.064 25.36 47.213 31.841 C 44.88 33.9 43.323 36.699 42.804 39.766 C 42.448 42.737 43.235 45.734 45.004 48.146 C 46.631 50.318 48.933 51.891 51.548 52.618 C 53.853 53.373 56.3 53.586 58.701 53.241 C 61.365 52.74 63.836 51.502 65.832 49.669 C 67.829 47.836 69.274 45.48 70.001 42.869 C 70.498 41.053 70.588 39.149 70.264 37.294 C 69.941 35.44 69.211 33.679 68.129 32.138 C 67.255 30.82 66.027 29.774 64.585 29.123 C 63.144 28.471 61.547 28.24 59.98 28.456 C 54.617 29.279 51.419 35.075 53.549 40.498 C 53.675 40.823 53.886 41.109 54.158 41.327 C 54.431 41.545 54.756 41.686 55.101 41.738 C 55.446 41.789 55.799 41.749 56.123 41.62 C 56.613 41.423 57.006 41.04 57.214 40.555 C 57.423 40.07 57.432 39.521 57.238 39.03 C 55.897 35.616 57.584 32.859 60.578 32.4 C 62.347 32.129 63.396 32.366 64.916 34.477 C 65.923 35.877 66.826 39.648 66.204 41.71 C 65.691 43.612 64.655 45.332 63.214 46.674 C 61.773 48.016 59.984 48.927 58.051 49.304 C 56.261 49.526 54.444 49.355 52.726 48.804 C 50.956 48.321 49.385 47.286 48.244 45.849 C 47.035 44.273 46.491 42.283 46.73 40.311 C 47.124 38.143 48.254 36.177 49.93 34.746 C 58.693 26.456 57.689 11.246 48.075 4.054 C 44.677 1.543 40.591 0.13 36.368 0.007 Z"
android:fillColor="#adb5bd"
android:strokeWidth="1"/>
<path
android:name="path_3"
android:pathData="M 39.006 21.345 C 38.476 21.345 37.967 21.556 37.592 21.931 C 37.217 22.306 37.006 22.815 37.006 23.345 C 37.006 23.875 37.217 24.384 37.592 24.759 C 37.967 25.134 38.476 25.345 39.006 25.345 C 39.536 25.345 40.045 25.134 40.42 24.759 C 40.795 24.384 41.006 23.875 41.006 23.345 C 41.006 22.815 40.795 22.306 40.42 21.931 C 40.045 21.556 39.536 21.345 39.006 21.345 Z"
android:fillColor="#adb5bd"
android:strokeWidth="1"/>
</vector>
39 changes: 29 additions & 10 deletions composeApp/src/ooniMain/res/drawable/notification_icon.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">

<path
android:fillColor="#FF000000"
android:pathData="M15,1H9v2h6V1zM11,14h2V8h-2V14zM19.03,7.39l1.42,-1.42c-0.43,-0.51 -0.9,-0.99 -1.41,-1.41l-1.42,1.42C16.07,4.74 14.12,4 12,4c-4.97,0 -9,4.03 -9,9s4.02,9 9,9s9,-4.03 9,-9C21,10.88 20.26,8.93 19.03,7.39zM12,20c-3.87,0 -7,-3.13 -7,-7s3.13,-7 7,-7s7,3.13 7,7S15.87,20 12,20z" />

<vector
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:name="vector"
android:width="70dp"
android:height="87dp"
android:viewportWidth="70"
android:viewportHeight="87"
tools:ignore="VectorPath" >
<path
android:name="path"
android:pathData="M 37.3 12.614 C 35.225 12.601 33.206 13.295 31.577 14.579 C 29.948 15.864 28.804 17.666 28.333 19.687 C 27.863 21.707 28.093 23.829 28.987 25.702 C 29.88 27.574 31.385 29.088 33.252 29.993 C 35.118 30.899 37.239 31.142 39.262 30.684 C 41.286 30.226 43.095 29.093 44.39 27.472 C 45.685 25.851 46.391 23.837 46.391 21.762 C 46.398 19.345 45.444 17.02 43.74 15.306 C 42.036 13.591 39.718 12.622 37.3 12.614 Z"
android:strokeColor="#adb5bd"
android:strokeWidth="4"/>
<path
android:name="path_1"
android:pathData="M 32.604 47.068 C 32.146 47.055 31.697 47.201 31.334 47.481 C 30.972 47.762 30.717 48.159 30.614 48.605 C 30.126 50.803 29.208 52.882 27.913 54.723 C 26.618 56.564 24.972 58.131 23.07 59.334 C 21.513 60.44 19.919 61.379 18.487 62.512 C 16.917 63.628 15.753 65.225 15.172 67.06 C 14.679 68.628 14.478 70.273 14.581 71.913 C 14.829 74.371 16.034 76.635 17.934 78.213 C 19.719 79.696 21.904 80.616 24.212 80.857 C 26.52 81.097 28.848 80.647 30.9 79.564 C 34.687 77.664 37.053 73.959 36.616 70.206 C 36.095 65.736 31.955 63.582 31.955 63.582 C 31.653 63.407 31.311 63.315 30.962 63.315 C 30.614 63.315 30.271 63.407 29.97 63.582 C 29.668 63.758 29.419 64.009 29.246 64.312 C 28.982 64.77 28.91 65.314 29.046 65.825 C 29.182 66.336 29.515 66.772 29.972 67.038 C 29.972 67.038 32.449 68.723 32.672 70.673 C 32.865 72.33 31.623 74.741 29.127 75.993 C 27.774 76.738 26.228 77.059 24.69 76.914 C 23.153 76.769 21.694 76.164 20.505 75.178 C 19.937 74.75 19.466 74.205 19.125 73.581 C 18.784 72.957 18.58 72.267 18.526 71.557 C 18.479 70.393 18.636 69.229 18.991 68.118 C 19.348 67.104 20.031 66.235 20.932 65.648 C 22.051 64.763 23.632 63.817 25.352 62.598 C 29.925 59.566 33.183 54.91 34.465 49.574 C 34.541 49.284 34.552 48.979 34.495 48.684 C 34.438 48.389 34.316 48.111 34.137 47.869 C 33.959 47.629 33.728 47.432 33.463 47.293 C 33.198 47.155 32.905 47.078 32.606 47.069 Z M 38.407 43.87 C 37.88 43.889 37.381 44.117 37.022 44.503 C 36.662 44.889 36.471 45.403 36.49 45.93 C 36.464 47.903 36.842 49.86 37.601 51.681 C 38.36 53.502 39.484 55.148 40.903 56.518 C 43.244 58.544 45.972 60.075 48.921 61.018 C 50.606 61.564 52.078 62.625 53.128 64.051 C 53.548 64.673 53.801 65.393 53.863 66.141 C 53.925 66.889 53.793 67.64 53.48 68.322 C 52.77 70.257 52.174 70.648 51.225 71.037 C 50.276 71.426 48.743 71.556 46.861 72.179 C 45.164 72.802 43.722 73.971 42.761 75.501 C 42.133 76.369 41.699 77.362 41.488 78.413 C 41.277 79.463 41.295 80.547 41.539 81.59 C 41.905 82.937 42.622 84.162 43.617 85.141 C 44.611 86.12 45.848 86.818 47.2 87.163 C 48.5 87.51 49.851 87.622 51.19 87.495 C 51.544 87.464 51.884 87.337 52.173 87.129 C 52.462 86.921 52.689 86.639 52.832 86.313 C 52.975 85.986 53.029 85.626 52.987 85.272 C 52.945 84.917 52.809 84.58 52.593 84.295 C 52.378 84.012 52.091 83.791 51.761 83.657 C 51.432 83.524 51.072 83.481 50.721 83.534 C 49.884 83.596 49.043 83.52 48.231 83.309 C 47.432 83.184 46.702 82.783 46.167 82.176 C 45.632 81.57 45.325 80.795 45.3 79.987 C 45.276 79.178 45.534 78.386 46.031 77.748 C 46.558 76.988 47.27 76.376 48.101 75.97 C 49.66 75.637 51.202 75.224 52.72 74.734 C 53.778 74.257 54.723 73.563 55.495 72.697 C 56.267 71.831 56.848 70.812 57.201 69.706 C 57.695 68.433 57.885 67.062 57.755 65.703 C 57.625 64.343 57.179 63.033 56.453 61.876 C 54.95 59.717 52.785 58.102 50.287 57.276 C 47.842 56.498 45.573 55.25 43.608 53.601 C 41.798 51.901 40.531 49.684 40.457 45.856 C 40.455 45.59 40.401 45.326 40.296 45.081 C 40.191 44.836 40.038 44.614 39.847 44.429 C 39.656 44.245 39.43 44.1 39.182 44.005 C 38.935 43.91 38.67 43.865 38.405 43.874 Z"
android:fillColor="#adb5bd"
android:strokeWidth="1"/>
<path
android:name="path_2"
android:pathData="M 36.377 0.013 C 32.884 -0.148 29.405 0.565 26.256 2.086 C 23.108 3.607 20.388 5.89 18.343 8.726 C 12.723 16.788 13.803 28.571 21.271 35.073 C 24.242 37.66 25.451 39.954 25.724 41.816 C 25.848 42.712 25.773 43.623 25.505 44.486 C 25.236 45.349 24.78 46.143 24.17 46.809 C 21.67 49.857 16.212 51.968 12.102 51.637 C 8.946 51.383 6.888 50.428 5.655 49.165 C 5.012 48.476 4.529 47.654 4.24 46.758 C 3.951 45.861 3.863 44.912 3.982 43.977 C 4.092 42.105 5.452 39.425 7.142 36.641 C 8.832 33.857 10.794 30.994 11.634 27.927 C 13.912 19.616 7.308 13.562 7.308 13.562 C 7.052 13.326 6.738 13.161 6.398 13.086 C 6.058 13.01 5.704 13.025 5.372 13.13 C 5.04 13.235 4.742 13.427 4.508 13.684 C 4.152 14.075 3.964 14.591 3.987 15.119 C 4.01 15.647 4.241 16.145 4.63 16.503 C 4.63 16.503 9.43 20.967 7.812 26.867 C 7.249 28.919 5.502 31.69 3.76 34.559 C 2.018 37.428 0.219 40.42 0.019 43.74 C -0.118 45.23 0.061 46.732 0.543 48.149 C 1.026 49.565 1.801 50.864 2.819 51.96 C 4.894 54.086 7.966 55.308 11.78 55.615 C 14.662 55.833 17.556 55.381 20.235 54.295 C 22.913 53.208 25.305 51.516 27.221 49.352 C 28.172 48.246 28.88 46.951 29.297 45.552 C 29.714 44.153 29.832 42.682 29.642 41.235 C 29.192 38.164 27.31 35.06 23.859 32.055 C 18.083 27.026 17.17 17.355 21.584 11.017 C 26.819 3.507 38.399 1.791 45.713 7.26 C 53.24 12.889 54.064 25.36 47.213 31.841 C 44.88 33.9 43.323 36.699 42.804 39.766 C 42.448 42.737 43.235 45.734 45.004 48.146 C 46.631 50.318 48.933 51.891 51.548 52.618 C 53.853 53.373 56.3 53.586 58.701 53.241 C 61.365 52.74 63.836 51.502 65.832 49.669 C 67.829 47.836 69.274 45.48 70.001 42.869 C 70.498 41.053 70.588 39.149 70.264 37.294 C 69.941 35.44 69.211 33.679 68.129 32.138 C 67.255 30.82 66.027 29.774 64.585 29.123 C 63.144 28.471 61.547 28.24 59.98 28.456 C 54.617 29.279 51.419 35.075 53.549 40.498 C 53.675 40.823 53.886 41.109 54.158 41.327 C 54.431 41.545 54.756 41.686 55.101 41.738 C 55.446 41.789 55.799 41.749 56.123 41.62 C 56.613 41.423 57.006 41.04 57.214 40.555 C 57.423 40.07 57.432 39.521 57.238 39.03 C 55.897 35.616 57.584 32.859 60.578 32.4 C 62.347 32.129 63.396 32.366 64.916 34.477 C 65.923 35.877 66.826 39.648 66.204 41.71 C 65.691 43.612 64.655 45.332 63.214 46.674 C 61.773 48.016 59.984 48.927 58.051 49.304 C 56.261 49.526 54.444 49.355 52.726 48.804 C 50.956 48.321 49.385 47.286 48.244 45.849 C 47.035 44.273 46.491 42.283 46.73 40.311 C 47.124 38.143 48.254 36.177 49.93 34.746 C 58.693 26.456 57.689 11.246 48.075 4.054 C 44.677 1.543 40.591 0.13 36.368 0.007 Z"
android:fillColor="#adb5bd"
android:strokeWidth="1"/>
<path
android:name="path_3"
android:pathData="M 39.006 21.345 C 38.476 21.345 37.967 21.556 37.592 21.931 C 37.217 22.306 37.006 22.815 37.006 23.345 C 37.006 23.875 37.217 24.384 37.592 24.759 C 37.967 25.134 38.476 25.345 39.006 25.345 C 39.536 25.345 40.045 25.134 40.42 24.759 C 40.795 24.384 41.006 23.875 41.006 23.345 C 41.006 22.815 40.795 22.306 40.42 21.931 C 40.045 21.556 39.536 21.345 39.006 21.345 Z"
android:fillColor="#adb5bd"
android:strokeWidth="1"/>
</vector>
Loading