mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Add new symbols for call tab.
This commit is contained in:
committed by
Greyson Parrelli
parent
ce3770a0fb
commit
de73744432
@@ -165,7 +165,7 @@ class CallLogAdapter(
|
|||||||
binding.callType.setImageResource(
|
binding.callType.setImageResource(
|
||||||
when (callType) {
|
when (callType) {
|
||||||
CallTable.Type.AUDIO_CALL -> R.drawable.symbol_phone_24
|
CallTable.Type.AUDIO_CALL -> R.drawable.symbol_phone_24
|
||||||
CallTable.Type.VIDEO_CALL -> R.drawable.ic_video_call_24
|
CallTable.Type.VIDEO_CALL -> R.drawable.symbol_video_24
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
binding.callType.visible = true
|
binding.callType.visible = true
|
||||||
@@ -174,13 +174,13 @@ class CallLogAdapter(
|
|||||||
@DrawableRes
|
@DrawableRes
|
||||||
private fun getCallStateDrawableRes(callEvent: CallTable.Event, callDirection: CallTable.Direction): Int {
|
private fun getCallStateDrawableRes(callEvent: CallTable.Event, callDirection: CallTable.Direction): Int {
|
||||||
if (callEvent == CallTable.Event.MISSED) {
|
if (callEvent == CallTable.Event.MISSED) {
|
||||||
return R.drawable.ic_update_audio_call_missed_16
|
return R.drawable.symbol_missed_incoming_compact_16
|
||||||
}
|
}
|
||||||
|
|
||||||
return if (callDirection == CallTable.Direction.INCOMING) {
|
return if (callDirection == CallTable.Direction.INCOMING) {
|
||||||
R.drawable.ic_update_audio_call_incoming_16
|
R.drawable.symbol_arrow_downleft_compact_16
|
||||||
} else {
|
} else {
|
||||||
R.drawable.ic_update_audio_call_outgoing_16
|
R.drawable.symbol_arrow_upright_compact_16
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class CallLogContextMenu(
|
|||||||
private fun getVideoCallActionItem(call: CallLogRow.Call): ActionItem {
|
private fun getVideoCallActionItem(call: CallLogRow.Call): ActionItem {
|
||||||
// TODO [alex] -- Need group calling disposition to make this correct
|
// TODO [alex] -- Need group calling disposition to make this correct
|
||||||
return ActionItem(
|
return ActionItem(
|
||||||
iconRes = R.drawable.ic_video_call_24,
|
iconRes = R.drawable.symbol_video_24,
|
||||||
title = fragment.getString(R.string.CallContextMenu__video_call)
|
title = fragment.getString(R.string.CallContextMenu__video_call)
|
||||||
) {
|
) {
|
||||||
CommunicationActions.startVideoCall(fragment, call.peer)
|
CommunicationActions.startVideoCall(fragment, call.peer)
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="16dp"
|
||||||
|
android:height="16dp"
|
||||||
|
android:viewportWidth="16"
|
||||||
|
android:viewportHeight="16">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M12.21 4.7l-5 5.01-1.36 1.14h4.65c0.36 0 0.65 0.3 0.65 0.65 0 0.36-0.3 0.65-0.65 0.65h-6c-0.36 0-0.65-0.3-0.65-0.65v-6c0-0.36 0.3-0.65 0.65-0.65 0.36 0 0.65 0.3 0.65 0.65v4.65L6.29 8.8l5-5c0.25-0.25 0.67-0.25 0.92 0s0.25 0.67 0 0.92Z"/>
|
||||||
|
</vector>
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="16dp"
|
||||||
|
android:height="16dp"
|
||||||
|
android:viewportWidth="16"
|
||||||
|
android:viewportHeight="16">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M10.85 5.85v4.65c0 0.36 0.3 0.65 0.65 0.65 0.36 0 0.65-0.3 0.65-0.65v-6c0-0.36-0.3-0.65-0.65-0.65h-6c-0.36 0-0.65 0.3-0.65 0.65 0 0.36 0.3 0.65 0.65 0.65h4.65L8.8 6.29l-5 5c-0.25 0.25-0.25 0.67 0 0.92s0.67 0.25 0.92 0l5-5 1.14-1.36Z"/>
|
||||||
|
</vector>
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="16dp"
|
||||||
|
android:height="16dp"
|
||||||
|
android:viewportWidth="16"
|
||||||
|
android:viewportHeight="16">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M1.85 5.5v5c0 0.36 0.3 0.65 0.65 0.65 0.36 0 0.65-0.3 0.65-0.65V6.9l1.01 1.18 3.35 3.35c0.55 0.55 1.43 0.55 1.98 0l5.22-5.22c0.25-0.25 0.25-0.67 0-0.92s-0.67-0.25-0.92 0l-5.22 5.22c-0.04 0.04-0.1 0.04-0.14 0L5.08 7.16 3.9 6.15H7.5c0.36 0 0.65-0.3 0.65-0.65 0-0.36-0.3-0.65-0.65-0.65h-5c-0.17 0-0.34 0.07-0.46 0.19S1.85 5.33 1.85 5.5Z"/>
|
||||||
|
</vector>
|
||||||
12
app/src/main/res/drawable/symbol_phone_plus_24.xml
Normal file
12
app/src/main/res/drawable/symbol_phone_plus_24.xml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<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="M18.88 2.5c0-0.48-0.4-0.88-0.88-0.88s-0.87 0.4-0.87 0.88v2.63H14.5c-0.48 0-0.87 0.39-0.87 0.87s0.39 0.88 0.87 0.88h2.63V9.5c0 0.48 0.39 0.88 0.87 0.88s0.88-0.4 0.88-0.88V6.87h2.62c0.48 0 0.88-0.39 0.88-0.87s-0.4-0.88-0.88-0.88h-2.62V2.5Z"/>
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M8.23 3.75C7.2 2.38 5.17 2.24 3.95 3.46L3.52 3.88C2 5.41 1.15 7.7 1.91 9.9c0.93 2.75 2.5 5.32 4.68 7.5 2.19 2.2 4.76 3.76 7.5 4.7 2.2 0.75 4.5-0.1 6.03-1.62l0.42-0.43c1.22-1.22 1.08-3.24-0.29-4.28l-2.78-2.11c-1.13-0.86-2.73-0.75-3.73 0.25l-1.02 1.01c-0.08-0.03-0.2-0.08-0.36-0.17-0.48-0.26-1.1-0.74-1.74-1.37-0.63-0.64-1.1-1.26-1.37-1.74-0.09-0.15-0.14-0.28-0.17-0.36l1-1.01c1.01-1.01 1.12-2.6 0.26-3.74l-2.1-2.78ZM5.18 4.7c0.48-0.47 1.25-0.42 1.66 0.1l2.1 2.79c0.34 0.43 0.3 1.05-0.1 1.44l-1.2 1.2c-0.41 0.42-0.38 0.96-0.32 1.25 0.07 0.34 0.22 0.69 0.4 1 0.36 0.67 0.95 1.42 1.67 2.13 0.71 0.72 1.46 1.3 2.12 1.67 0.32 0.18 0.67 0.33 1 0.4 0.3 0.06 0.84 0.09 1.25-0.32l1.21-1.2c0.4-0.4 1-0.44 1.44-0.1l2.78 2.1c0.53 0.4 0.58 1.18 0.11 1.66l-0.42 0.42c-1.18 1.18-2.8 1.69-4.22 1.2-2.5-0.86-4.84-2.28-6.83-4.27-2-2-3.41-4.34-4.27-6.83C3.07 7.9 3.58 6.3 4.76 5.12L5.18 4.7Z"/>
|
||||||
|
</vector>
|
||||||
9
app/src/main/res/drawable/symbol_video_24.xml
Normal file
9
app/src/main/res/drawable/symbol_video_24.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<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="M6.76 3.63h4.98c0.8 0 1.47 0 2 0.04 0.56 0.04 1.05 0.14 1.52 0.38 0.73 0.37 1.32 0.96 1.7 1.7 0.23 0.46 0.33 0.95 0.37 1.5 0.04 0.46 0.04 1 0.04 1.64l2.8-2.8c1.19-1.18 3.2-0.35 3.2 1.32v9.18c0 1.67-2.01 2.5-3.2 1.32l-2.8-2.8c0 0.64 0 1.18-0.04 1.63-0.04 0.56-0.14 1.05-0.38 1.52-0.37 0.73-0.96 1.32-1.7 1.7-0.46 0.23-0.95 0.33-1.5 0.37-0.54 0.05-1.2 0.05-2.01 0.05H6.76c-0.8 0-1.47 0-2-0.05C4.2 20.3 3.7 20.2 3.24 19.95c-0.73-0.37-1.32-0.96-1.7-1.7-0.23-0.46-0.33-0.95-0.37-1.5-0.05-0.54-0.05-1.2-0.04-2.01V9.26c0-0.8 0-1.47 0.04-2C1.2 6.7 1.3 6.2 1.55 5.74c0.37-0.73 0.96-1.32 1.7-1.7 0.46-0.23 0.95-0.33 1.5-0.37 0.54-0.05 1.2-0.05 2.01-0.04Zm8.86 5.67c0-0.85 0-1.44-0.03-1.9-0.04-0.45-0.1-0.69-0.2-0.86-0.2-0.4-0.53-0.73-0.93-0.93-0.17-0.1-0.41-0.16-0.86-0.2-0.46-0.03-1.05-0.04-1.9-0.04H6.8c-0.85 0-1.44 0-1.9 0.04-0.45 0.04-0.69 0.1-0.86 0.2C3.64 5.8 3.3 6.14 3.1 6.54 3 6.7 2.95 6.95 2.9 7.4 2.88 7.86 2.87 8.45 2.87 9.3v5.4c0 0.85 0 1.44 0.04 1.9 0.04 0.45 0.1 0.69 0.2 0.86 0.2 0.4 0.53 0.73 0.93 0.93 0.17 0.1 0.41 0.16 0.86 0.2 0.46 0.03 1.05 0.04 1.9 0.04h4.9c0.85 0 1.44 0 1.9-0.04 0.45-0.04 0.69-0.1 0.86-0.2 0.4-0.2 0.73-0.53 0.93-0.93 0.1-0.17 0.16-0.41 0.2-0.86 0.03-0.46 0.04-1.05 0.04-1.9V9.3Zm1.76 2.7c0 0.4 0.16 0.8 0.45 1.09l3.58 3.58 0.06 0.04h0.08l0.06-0.05c0-0.01 0.02-0.03 0.02-0.07V7.4c0-0.04-0.02-0.06-0.02-0.07L21.55 7.3l-0.08-0.01s-0.03 0-0.06 0.04l-3.58 3.58c-0.3 0.29-0.45 0.68-0.45 1.09Z"/>
|
||||||
|
</vector>
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
android:transitionName="new_convo_fab"
|
android:transitionName="new_convo_fab"
|
||||||
app:backgroundTint="@color/signal_colorPrimaryContainer"
|
app:backgroundTint="@color/signal_colorPrimaryContainer"
|
||||||
app:shapeAppearanceOverlay="@style/Signal.ShapeOverlay.Rounded.Fab"
|
app:shapeAppearanceOverlay="@style/Signal.ShapeOverlay.Rounded.Fab"
|
||||||
app:srcCompat="@drawable/symbol_phone_24"
|
app:srcCompat="@drawable/symbol_phone_plus_24"
|
||||||
app:tint="@color/signal_colorOnSurface" />
|
app:tint="@color/signal_colorOnSurface" />
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||||
Reference in New Issue
Block a user