Skip to content

Commit

Permalink
add icon
Browse files Browse the repository at this point in the history
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
  • Loading branch information
sowjanyakch committed Feb 4, 2025
1 parent a6aada5 commit 22744d0
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ fun ImageView.loadDefaultGroupCallAvatar(viewThemeUtils: ViewThemeUtils): io.rea
}

fun ImageView.loadTeamAvatar(viewThemeUtils: ViewThemeUtils): io.reactivex.disposables.Disposable {
val data: Any = viewThemeUtils.talk.themePlaceholderAvatar(this, R.drawable.icon_team_white) as Any
val data: Any = viewThemeUtils.talk.themePlaceholderAvatar(this, R.drawable.icon_team) as Any
return loadUserAvatar(data)
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/nextcloud/talk/utils/DisplayUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ object DisplayUtils {
chip.setChipIconResource(R.drawable.ic_circular_group)
}
if(type == "circle"){
chip.setChipIconResource(R.drawable.icon_team_white)
chip.setChipIconResource(R.drawable.icon_team)
}
chip.setBounds(0, 0, chip.intrinsicWidth, chip.intrinsicHeight)
if (!isCallOrGroup) {
Expand Down
13 changes: 13 additions & 0 deletions app/src/main/res/drawable-night/icon_team.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="22dp"
android:height="22dp"
android:viewportWidth="44"
android:viewportHeight="44">
<path
android:pathData="M22,22m-22,0a22,22 0,1 1,44 0a22,22 0,1 1,-44 0"
android:fillColor="#3b3b3b"/>
<path
android:pathData="M22,14.75A3.5,3.5 0,0 1,25.5 18.25,3.5 3.5,0 0,1 22,21.75 3.5,3.5 0,0 1,18.5 18.25,3.5 3.5,0 0,1 22,14.75M15,17.25c0.56,0 1.08,0.15 1.53,0.42 -0.15,1.43 0.27,2.85 1.13,3.96 -0.5,0.96 -1.5,1.62 -2.66,1.62A3,3 0,0 1,12 20.25,3 3,0 0,1 15,17.25m14,0A3,3 0,0 1,32 20.25,3 3,0 0,1 29,23.25c-1.16,0 -2.16,-0.66 -2.66,-1.62 0.86,-1.11 1.28,-2.53 1.13,-3.96C27.92,17.4 28.44,17.25 29,17.25M15.5,27.5C15.5,25.43 18.41,23.75 22,23.75 25.59,23.75 28.5,25.43 28.5,27.5v1.75h-13v-1.75m-5.5,1.75V27.75c0,-1.39 1.89,-2.56 4.45,-2.9C13.86,25.53 13.5,26.47 13.5,27.5v1.75H10m24,0h-3.5v-1.75C30.5,26.47 30.14,25.53 29.55,24.85 32.11,25.19 34,26.36 34,27.75Z"
android:strokeWidth="1.00001"
android:fillColor="#ffffff"/>
</vector>
13 changes: 13 additions & 0 deletions app/src/main/res/drawable/icon_team.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="22dp"
android:height="22dp"
android:viewportWidth="44"
android:viewportHeight="44">
<path
android:pathData="M22,22m-22,0a22,22 0,1 1,44 0a22,22 0,1 1,-44 0"
android:fillColor="#6B6B6B"/>
<path
android:pathData="M22,14.75A3.5,3.5 0,0 1,25.5 18.25,3.5 3.5,0 0,1 22,21.75 3.5,3.5 0,0 1,18.5 18.25,3.5 3.5,0 0,1 22,14.75M15,17.25c0.56,0 1.08,0.15 1.53,0.42C16.38,19.1 16.8,20.52 17.66,21.63 17.16,22.59 16.16,23.25 15,23.25a3,3 0,0 1,-3 -3,3 3,0 0,1 3,-3m14,0a3,3 0,0 1,3 3A3,3 0,0 1,29 23.25c-1.16,0 -2.16,-0.66 -2.66,-1.62C27.2,20.52 27.62,19.1 27.47,17.67 27.92,17.4 28.44,17.25 29,17.25M15.5,27.5c0,-2.07 2.91,-3.75 6.5,-3.75C25.59,23.75 28.5,25.43 28.5,27.5v1.75h-13V27.5M10,29.25V27.75c0,-1.39 1.89,-2.56 4.45,-2.9C13.86,25.53 13.5,26.47 13.5,27.5v1.75H10m24,0H30.5V27.5c0,-1.03 -0.36,-1.97 -0.95,-2.65C32.11,25.19 34,26.36 34,27.75Z"
android:strokeWidth="1.00001"
android:fillColor="#ffffff"/>
</vector>
9 changes: 0 additions & 9 deletions app/src/main/res/drawable/icon_team_white.xml

This file was deleted.

0 comments on commit 22744d0

Please sign in to comment.