From 9c53805c51056d6ca48a290f9ffd7a877192c196 Mon Sep 17 00:00:00 2001 From: Tangem Date: Wed, 27 Nov 2024 19:00:11 +0400 Subject: [PATCH] Updated on 2026-08-14 --- .../ui/components/buttons/actions/Actions.kt | 30 +++++++------------ 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/core/ui/src/main/java/com/tangem/core/ui/components/buttons/actions/Actions.kt b/core/ui/src/main/java/com/tangem/core/ui/components/buttons/actions/Actions.kt index 3fddfd6d06..14d96a5225 100644 --- a/core/ui/src/main/java/com/tangem/core/ui/components/buttons/actions/Actions.kt +++ b/core/ui/src/main/java/com/tangem/core/ui/components/buttons/actions/Actions.kt @@ -140,33 +140,25 @@ private fun Content(config: ActionButtonConfig, modifier: Modifier = Modifier) { horizontalArrangement = Arrangement.Center, verticalAlignment = Alignment.CenterVertically, ) { - val iconTint by animateColorAsState( - targetValue = when { - !config.enabled -> TangemTheme.colors.icon.informative - config.dimContent -> TangemTheme.colors.icon.informative - else -> TangemTheme.colors.icon.primary1 - }, - label = "Update tint color", - ) - + val iconTint = when { + !config.enabled -> TangemTheme.colors.icon.informative + config.dimContent -> TangemTheme.colors.icon.informative + else -> TangemTheme.colors.icon.primary1 + } Icon( + modifier = Modifier.size(size = TangemTheme.dimens.size20), painter = painterResource(id = config.iconResId), contentDescription = null, - modifier = Modifier.size(size = TangemTheme.dimens.size20), tint = iconTint, ) SpacerW8() - val textColor by animateColorAsState( - targetValue = when { - !config.enabled -> TangemTheme.colors.text.disabled - config.dimContent -> TangemTheme.colors.text.tertiary - else -> TangemTheme.colors.text.primary1 - }, - label = "Update text color", - ) - + val textColor = when { + !config.enabled -> TangemTheme.colors.text.disabled + config.dimContent -> TangemTheme.colors.text.tertiary + else -> TangemTheme.colors.text.primary1 + } Text( text = config.text.resolveReference(), color = textColor,