chore: use cloud icon instead of hook for webhook

to be consistent with web

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2024-11-08 00:44:26 +01:00
parent f9e54db620
commit 584838b98d
3 changed files with 13 additions and 11 deletions

View File

@ -1,12 +1,14 @@
package chat.revolt.components.chat package chat.revolt.components.chat
import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Icon import androidx.compose.material3.Icon
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import chat.revolt.R import chat.revolt.R
enum class InlineBadge { enum class InlineBadge {
@ -53,10 +55,10 @@ fun InlineBadge(
) )
InlineBadge.Webhook -> Icon( InlineBadge.Webhook -> Icon(
painter = painterResource(id = R.drawable.ic_hook_24dp), painter = painterResource(id = R.drawable.ic_cloud_24dp),
contentDescription = stringResource(id = R.string.badge_webhook_alt), contentDescription = stringResource(id = R.string.badge_webhook_alt),
tint = colour, tint = colour,
modifier = modifier modifier = modifier.padding(start = 4.dp)
) )
} }
} }

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#ffffff"
android:pathData="M6.5 20Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.88 6.85 7.75 5.43 9.63 4 12 4 14.93 4 16.96 6.04 19 8.07 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20Z" />
</vector>

View File

@ -1,9 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:width="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#ffffff"
android:pathData="M18,6C18,7.82 16.76,9.41 15,9.86V17A5,5 0 0,1 10,22A5,5 0 0,1 5,17V12L10,17H7A3,3 0 0,0 10,20A3,3 0 0,0 13,17V9.86C11.23,9.4 10,7.8 10,5.97C10,3.76 11.8,2 14,2C16.22,2 18,3.79 18,6M14,8A2,2 0 0,0 16,6A2,2 0 0,0 14,4A2,2 0 0,0 12,6A2,2 0 0,0 14,8Z" />
</vector>