Avoid color-filtering the emoji

This commit is contained in:
Vitor Pamplona
2023-05-16 08:32:25 -04:00
parent d29e6b4d0b
commit 14e670cd9a
@@ -21,7 +21,6 @@ import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue import androidx.compose.runtime.setValue
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.graphics.ColorFilter
import androidx.compose.ui.graphics.takeOrElse import androidx.compose.ui.graphics.takeOrElse
import androidx.compose.ui.input.pointer.pointerInput import androidx.compose.ui.input.pointer.pointerInput
import androidx.compose.ui.text.AnnotatedString import androidx.compose.ui.text.AnnotatedString
@@ -427,8 +426,7 @@ fun ClickableInLineIconRenderer(wordsInOrder: List<Renderable>, style: SpanStyle
AsyncImage( AsyncImage(
model = value.url, model = value.url,
contentDescription = null, contentDescription = null,
modifier = Modifier.fillMaxSize().padding(1.dp), modifier = Modifier.fillMaxSize().padding(1.dp)
colorFilter = ColorFilter.tint(style.color)
) )
} }
) )
@@ -492,8 +490,7 @@ fun InLineIconRenderer(
AsyncImage( AsyncImage(
model = value.url, model = value.url,
contentDescription = null, contentDescription = null,
modifier = Modifier.fillMaxSize().padding(1.dp), modifier = Modifier.fillMaxSize().padding(1.dp)
colorFilter = ColorFilter.tint(style.color)
) )
} }
) )