Skip to content

Commit

Permalink
add conversation public icon
Browse files Browse the repository at this point in the history
Signed-off-by: sowjanyakch <[email protected]>
  • Loading branch information
sowjanyakch committed Nov 25, 2024
1 parent e47b5aa commit ec58327
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import coil.result
import coil.transform.CircleCropTransformation
import coil.transform.RoundedCornersTransformation
import com.nextcloud.talk.R
import com.nextcloud.talk.chat.data.model.ChatMessage
import com.nextcloud.talk.data.user.model.User
import com.nextcloud.talk.models.domain.ConversationModel
import com.nextcloud.talk.chat.data.model.ChatMessage
import com.nextcloud.talk.models.json.conversations.Conversation
import com.nextcloud.talk.models.json.conversations.ConversationEnums
import com.nextcloud.talk.ui.theme.ViewThemeUtils
Expand Down Expand Up @@ -89,7 +89,7 @@ fun ImageView.loadConversationAvatar(
ContextCompat.getDrawable(context, R.drawable.ic_circular_group)

ConversationEnums.ConversationType.ROOM_PUBLIC_CALL ->
ContextCompat.getDrawable(context, R.drawable.ic_circular_link)
ContextCompat.getDrawable(context, R.drawable.ic_conv_public)

else -> ContextCompat.getDrawable(context, R.drawable.account_circle_96dp)
}
Expand Down
22 changes: 0 additions & 22 deletions app/src/main/res/drawable-night/ic_circular_link.xml

This file was deleted.

8 changes: 8 additions & 0 deletions app/src/main/res/drawable-night/icon_conversation_public.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:autoMirrored="true" android:height="24dp"
android:viewportHeight="44" android:viewportWidth="44" android:width="24dp">

<path android:fillColor="#3B3B3B" android:pathData="M22,22m-22,0a22,22 0,1 1,44 0a22,22 0,1 1,-44 0"/>

<path android:fillColor="#fff" android:pathData="M13.9,22C13.9,20.29 15.29,18.9 17,18.9L21,18.9L21,17L17,17A5,5 0,0 0,12 22A5,5 0,0 0,17 27L21,27L21,25.1L17,25.1C15.29,25.1 13.9,23.71 13.9,22M18,23L26,23L26,21L18,21L18,23M27,17L23,17L23,18.9L27,18.9C28.71,18.9 30.1,20.29 30.1,22C30.1,23.71 28.71,25.1 27,25.1L23,25.1L23,27L27,27A5,5 0,0 0,32 22A5,5 0,0 0,27 17Z"/>

</vector>
22 changes: 0 additions & 22 deletions app/src/main/res/drawable/ic_circular_link.xml

This file was deleted.

5 changes: 5 additions & 0 deletions app/src/main/res/drawable/ic_conv_public.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#FFFFFF" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">

<path android:fillColor="@android:color/white" android:pathData="M3.9,12c0,-1.71 1.39,-3.1 3.1,-3.1h4L11,7L7,7c-2.76,0 -5,2.24 -5,5s2.24,5 5,5h4v-1.9L7,15.1c-1.71,0 -3.1,-1.39 -3.1,-3.1zM8,13h8v-2L8,11v2zM17,7h-4v1.9h4c1.71,0 3.1,1.39 3.1,3.1s-1.39,3.1 -3.1,3.1h-4L13,17h4c2.76,0 5,-2.24 5,-5s-2.24,-5 -5,-5z"/>

</vector>
21 changes: 21 additions & 0 deletions app/src/main/res/drawable/icon_conversation_public.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:autoMirrored="true"
android:height="24dp"
android:viewportHeight="44"
android:viewportWidth="44"
android:width="24dp">

<path
android:fillColor="#6B6B6B"
android:pathData="M22,22m-22,0a22,22 0,1 1,44 0a22,22 0,1 1,-44 0"/>

<path android:fillColor="#fff"
android:pathData="M13.9,22C13.9,20.29 15.29,18.9 17,18.9L21,18.9L21,17L17,17A5,5 0,0 0,12 22A5,5 0,0 0,17 27L21,27L21,25.1L17,25.1C15.29,25.1 13.9,23.71 13.9,22M18,23L26,23L26,21L18,21L18,23M27,17L23,17L23,18.9L27,18.9C28.71,18.9 30.1,20.29 30.1,22C30.1,23.71 28.71,25.1 27,25.1L23,25.1L23,27L27,27A5,5 0,0 0,32 22A5,5 0,0 0,27 17Z"/>

</vector>





0 comments on commit ec58327

Please sign in to comment.