Skip to content

Commit

Permalink
UI: Update the placholder avatar for empty profile (#562)
Browse files Browse the repository at this point in the history
* Update the placholder avatar for empty profile

* Ignore long vector path warning
  • Loading branch information
AdamGrzybkowski authored Jan 27, 2025
1 parent a3fc077 commit b29015c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 30 deletions.
37 changes: 22 additions & 15 deletions gravatar-ui/src/main/res/drawable/gravatar_empty_profile_avatar.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:width="72dp"
android:height="72dp"
android:viewportWidth="72"
android:viewportHeight="72">
<group>
<clip-path
android:pathData="M36,0L36,0A36,36 0,0 1,72 36L72,36A36,36 0,0 1,36 72L36,72A36,36 0,0 1,0 36L0,36A36,36 0,0 1,36 0z"/>
android:viewportHeight="72"
tools:ignore="LongVectorPath">
<group>
<clip-path android:pathData="M36 0a36 36 0 0 1 36 36 36 36 0 0 1-36 36A36 36 0 0 1 0 36 36 36 0 0 1 36 0z" />
<path
android:fillColor="#101517"
android:pathData="M36 0a36 36 0 0 1 36 36 36 36 0 0 1-36 36A36 36 0 0 1 0 36 36 36 0 0 1 36 0z" />
<path
android:fillColor="#ffffff"
android:pathData="M19.5 48.5c0.4-2.4 4.5-17 6.5-24C0.73-0.73 43.5-21.63 72 12c20 23.6 2.5 48-4 54.5S51.5 74.689 39 73c-11.899-1.608-11.167-17.308-10-22.5-2.546 0.154-9.78-0.318-9.5-2z" />
<path
android:pathData="M33.811 35.757c0.162-0.892 0.584-2.189 1.946-2.189s1.946 1.297 1.946 2.189"
android:strokeWidth="0.972973"
android:strokeColor="#101517" />
<path
android:fillColor="#101517"
android:pathData="M41.444 60.919c0.195-0.185 0.201-0.493 0.016-0.688-0.186-0.194-0.494-0.201-0.688-0.015l0.672 0.703zM29.55 64.932c0.04-0.01 0.154-0.018 0.408-0.004 0.254 0.013 0.512 0.036 0.894 0.059 0.718 0.043 1.656 0.067 2.748-0.075 2.193-0.286 4.967-1.241 7.844-3.993l-0.672-0.703c-2.718 2.599-5.295 3.47-7.298 3.731-1.006 0.131-1.877 0.11-2.565 0.069-0.322-0.019-0.666-0.048-0.899-0.06-0.234-0.012-0.492-0.019-0.696 0.032l0.236 0.944zm-8.874-46.445l0.415-0.253-0.415 0.253zm25.478 6.046c0.249-0.1 0.37-0.383 0.271-0.632-0.1-0.25-0.383-0.371-0.633-0.271l0.362 0.903zM24.541-3.81c-7.55 5.033-8.823 15.077-4.281 22.549l0.831-0.505C16.773 11.13 18.036 1.696 25.081-3l-0.54-0.81zM20.26 18.739c3.868 6.364 9.141 8.319 14.058 8.413 4.881 0.093 9.401-1.645 11.836-2.619l-0.362-0.903c-2.43 0.972-6.789 2.638-11.455 2.549-4.629-0.088-9.573-1.903-13.246-7.945l-0.831 0.505zm23.037 31.369a1.946 1.946 0 1 1 3.892 0 1.946 1.946 0 1 1-3.892 0" />
</group>
<path
android:pathData="M36,0L36,0A36,36 0,0 1,72 36L72,36A36,36 0,0 1,36 72L36,72A36,36 0,0 1,0 36L0,36A36,36 0,0 1,36 0z"
android:fillColor="#ffffff"/>
<path
android:pathData="M19.5,48.5C19.9,46.1 24,31.5 26,24.5C-2,2.5 43.5,-21.63 72,12C92,35.6 74.5,60 68,66.5C61.5,73 51.5,74.689 39,73C27.101,71.392 27.833,55.692 29,50.5C26.454,50.654 19.22,50.182 19.5,48.5Z"
android:fillColor="#DADADA"/>
</group>
<path
android:strokeWidth="1"
android:pathData="M36,0.5L36,0.5A35.5,35.5 0,0 1,71.5 36L71.5,36A35.5,35.5 0,0 1,36 71.5L36,71.5A35.5,35.5 0,0 1,0.5 36L0.5,36A35.5,35.5 0,0 1,36 0.5z"
android:fillColor="#00000000"
android:strokeColor="#DADADA"/>
android:pathData="M36 0.5A35.5 35.5 0 0 1 71.5 36 35.5 35.5 0 0 1 36 71.5 35.5 35.5 0 0 1 0.5 36 35.5 35.5 0 0 1 36 0.5z"
android:strokeWidth="1"
android:strokeColor="#101517" />
</vector>
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:width="72dp"
android:height="72dp"
android:viewportWidth="72"
android:viewportHeight="72">
<group>
<clip-path
android:pathData="M36,0L36,0A36,36 0,0 1,72 36L72,36A36,36 0,0 1,36 72L36,72A36,36 0,0 1,0 36L0,36A36,36 0,0 1,36 0z"/>
android:viewportHeight="72"
tools:ignore="LongVectorPath">
<group>
<clip-path android:pathData="M36 0a36 36 0 0 1 36 36 36 36 0 0 1-36 36A36 36 0 0 1 0 36 36 36 0 0 1 36 0z" />
<path
android:fillColor="#101517"
android:pathData="M36 0a36 36 0 0 1 36 36 36 36 0 0 1-36 36A36 36 0 0 1 0 36 36 36 0 0 1 36 0z" />
<path
android:fillColor="#F0F0F0"
android:pathData="M19.5 48.5c0.4-2.4 4.5-17 6.5-24C0.73-0.73 43.5-21.63 72 12c20 23.6 2.5 48-4 54.5S51.5 74.689 39 73c-11.899-1.608-11.167-17.308-10-22.5-2.546 0.154-9.78-0.318-9.5-2z" />
<path
android:pathData="M33.811 35.757c0.162-0.892 0.584-2.189 1.946-2.189s1.946 1.297 1.946 2.189"
android:strokeWidth="0.972973"
android:strokeColor="#101517" />
<path
android:fillColor="#101517"
android:pathData="M41.444 60.919c0.195-0.185 0.201-0.493 0.016-0.688-0.186-0.194-0.494-0.201-0.688-0.015l0.672 0.703zM29.55 64.932c0.04-0.01 0.154-0.018 0.408-0.004 0.254 0.013 0.512 0.036 0.894 0.059 0.718 0.043 1.656 0.067 2.748-0.075 2.193-0.286 4.967-1.241 7.844-3.993l-0.672-0.703c-2.718 2.599-5.295 3.47-7.298 3.731-1.006 0.131-1.877 0.11-2.565 0.069-0.322-0.019-0.666-0.048-0.899-0.06-0.234-0.012-0.492-0.019-0.696 0.032l0.236 0.944zm-8.874-46.445l0.415-0.253-0.415 0.253zm25.478 6.046c0.249-0.1 0.37-0.383 0.271-0.632-0.1-0.25-0.383-0.371-0.633-0.271l0.362 0.903zM24.541-3.81c-7.55 5.033-8.823 15.077-4.281 22.549l0.831-0.505C16.773 11.13 18.036 1.696 25.081-3l-0.54-0.81zM20.26 18.739c3.868 6.364 9.141 8.319 14.058 8.413 4.881 0.093 9.401-1.645 11.836-2.619l-0.362-0.903c-2.43 0.972-6.789 2.638-11.455 2.549-4.629-0.088-9.573-1.903-13.246-7.945l-0.831 0.505zm23.037 31.369a1.946 1.946 0 1 1 3.892 0 1.946 1.946 0 1 1-3.892 0" />
</group>
<path
android:pathData="M36,0L36,0A36,36 0,0 1,72 36L72,36A36,36 0,0 1,36 72L36,72A36,36 0,0 1,0 36L0,36A36,36 0,0 1,36 0z"
android:fillColor="#101517"/>
<path
android:pathData="M19.5,48.5C19.9,46.1 24,31.5 26,24.5C-2,2.5 43.5,-21.63 72,12C92,35.6 74.5,60 68,66.5C61.5,73 51.5,74.689 39,73C27.101,71.392 27.833,55.692 29,50.5C26.454,50.654 19.22,50.182 19.5,48.5Z"
android:fillColor="#50575E"/>
</group>
<path
android:strokeWidth="1"
android:pathData="M36,0.5L36,0.5A35.5,35.5 0,0 1,71.5 36L71.5,36A35.5,35.5 0,0 1,36 71.5L36,71.5A35.5,35.5 0,0 1,0.5 36L0.5,36A35.5,35.5 0,0 1,36 0.5z"
android:fillColor="#00000000"
android:strokeColor="#F0F0F0"/>
android:pathData="M36 0.5A35.5 35.5 0 0 1 71.5 36 35.5 35.5 0 0 1 36 71.5 35.5 35.5 0 0 1 0.5 36 35.5 35.5 0 0 1 36 0.5z"
android:strokeWidth="1"
android:strokeColor="#F0F0F0" />
</vector>

0 comments on commit b29015c

Please sign in to comment.