diff --git a/core/ui/src/main/java/com/tangem/core/ui/components/notifications/NotificationWithBackground.kt b/core/ui/src/main/java/com/tangem/core/ui/components/notifications/NotificationWithBackground.kt index 072a7389f6..b377102b35 100644 --- a/core/ui/src/main/java/com/tangem/core/ui/components/notifications/NotificationWithBackground.kt +++ b/core/ui/src/main/java/com/tangem/core/ui/components/notifications/NotificationWithBackground.kt @@ -66,10 +66,12 @@ fun NotificationWithBackground(config: NotificationConfig, modifier: Modifier = Image( painter = painterResource(config.iconResId), contentDescription = null, - modifier = Modifier.constrainAs(iconRef) { - start.linkTo(parent.start, spacing12) - linkTo(titleRef.top, subtitleRef.bottom, bias = 0.1f) - }, + modifier = Modifier + .size(TangemTheme.dimens.size34) + .constrainAs(iconRef) { + start.linkTo(parent.start, spacing12) + linkTo(titleRef.top, subtitleRef.bottom, bias = 0.1f) + }, ) Text( text = config.title.resolveReference(), @@ -147,7 +149,7 @@ private class NotificationWithBackgroundPreviewProvider : PreviewParameterProvid NotificationConfig( title = resourceReference(id = R.string.main_swap_promotion_title), subtitle = resourceReference(id = R.string.main_swap_promotion_message), - iconResId = R.drawable.ic_swap_promo_34, + iconResId = R.drawable.img_swap_promo, backgroundResId = R.drawable.img_swap_promo_banner_background, ), NotificationConfig( @@ -158,7 +160,7 @@ private class NotificationWithBackgroundPreviewProvider : PreviewParameterProvid "currencies between any chains you wish. Commission free period " + "till Dec 31.", ), - iconResId = R.drawable.ic_swap_promo_34, + iconResId = R.drawable.img_swap_promo, backgroundResId = R.drawable.img_swap_promo_banner_background, buttonsState = NotificationConfig.ButtonsState.SecondaryButtonConfig( text = resourceReference(id = R.string.token_swap_promotion_button), diff --git a/core/ui/src/main/res/drawable/ic_swap_promo_34.xml b/core/ui/src/main/res/drawable/ic_swap_promo_34.xml deleted file mode 100644 index 3c279910c8..0000000000 --- a/core/ui/src/main/res/drawable/ic_swap_promo_34.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - diff --git a/core/ui/src/main/res/drawable/img_swap_promo.webp b/core/ui/src/main/res/drawable/img_swap_promo.webp new file mode 100644 index 0000000000..4f5bd02d24 Binary files /dev/null and b/core/ui/src/main/res/drawable/img_swap_promo.webp differ diff --git a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/components/TokenDetailsNotification.kt b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/components/TokenDetailsNotification.kt index fe9ef56abc..dbe63a69f8 100644 --- a/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/components/TokenDetailsNotification.kt +++ b/features/tokendetails/impl/src/main/kotlin/com/tangem/feature/tokendetails/presentation/tokendetails/state/components/TokenDetailsNotification.kt @@ -46,7 +46,7 @@ internal sealed class TokenDetailsNotification(val config: NotificationConfig) { config = NotificationConfig( title = resourceReference(id = R.string.token_swap_promotion_title), subtitle = resourceReference(id = R.string.token_swap_promotion_message), - iconResId = R.drawable.ic_swap_promo_34, + iconResId = R.drawable.img_swap_promo, backgroundResId = R.drawable.img_swap_promo_banner_background, onCloseClick = onCloseClick, buttonsState = NotificationConfig.ButtonsState.SecondaryButtonConfig( diff --git a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/state/components/WalletNotification.kt b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/state/components/WalletNotification.kt index 6aeebbc6c7..7f6bfd6b46 100644 --- a/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/state/components/WalletNotification.kt +++ b/features/wallet/impl/src/main/java/com/tangem/feature/wallet/presentation/wallet/state/components/WalletNotification.kt @@ -173,7 +173,7 @@ sealed class WalletNotification(val config: NotificationConfig) { config = NotificationConfig( title = resourceReference(id = R.string.main_swap_promotion_title), subtitle = resourceReference(id = R.string.main_swap_promotion_message), - iconResId = R.drawable.ic_swap_promo_34, + iconResId = R.drawable.img_swap_promo, backgroundResId = R.drawable.img_swap_promo_banner_background, onCloseClick = onCloseClick, ),