Updated on 2026-08-14

This commit is contained in:
Tangem 2025-07-02 17:46:22 +04:00
parent 16a190cbe7
commit 772ec7b53a
4 changed files with 16 additions and 12 deletions

View file

@ -37,7 +37,7 @@ data class MessageBottomSheetUMV2(
}
enum class BackgroundType {
Unspecified, SameAsTint
Unspecified, SameAsTint, Accent, Informative, Attention, Warning,
}
}

View file

@ -138,6 +138,10 @@ private fun BottomSheetIcon(icon: MessageBottomSheetUMV2.Icon, modifier: Modifie
val backgroundColor = when (icon.backgroundType) {
MessageBottomSheetUMV2.Icon.BackgroundType.Unspecified -> TangemTheme.colors.icon.informative
MessageBottomSheetUMV2.Icon.BackgroundType.SameAsTint -> tint
MessageBottomSheetUMV2.Icon.BackgroundType.Accent -> TangemTheme.colors.icon.accent
MessageBottomSheetUMV2.Icon.BackgroundType.Informative -> TangemTheme.colors.icon.informative
MessageBottomSheetUMV2.Icon.BackgroundType.Attention -> TangemTheme.colors.icon.attention
MessageBottomSheetUMV2.Icon.BackgroundType.Warning -> TangemTheme.colors.icon.warning
}
Box(