Updated on 2026-08-14
This commit is contained in:
parent
8af068b74b
commit
d8f696186e
25 changed files with 1127 additions and 235 deletions
|
|
@ -49,11 +49,11 @@ data class MessageBottomSheetUM(
|
|||
var backgroundType: BackgroundType = BackgroundType.Unspecified,
|
||||
) : Element {
|
||||
enum class Type {
|
||||
Unspecified, Accent, Informative, Attention, Warning,
|
||||
Unspecified, Accent, Informative, Attention, Warning, Success,
|
||||
}
|
||||
|
||||
enum class BackgroundType {
|
||||
Unspecified, SameAsTint, Accent, Informative, Attention, Warning,
|
||||
Unspecified, SameAsTint, Accent, Informative, Attention, Warning, Success,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -214,6 +214,7 @@ private fun BottomSheetVector(vector: MessageBottomSheetUM.Vector, modifier: Mod
|
|||
MessageBottomSheetUM.Vector.Type.Informative -> TangemTheme.colors3.icon.status.info
|
||||
MessageBottomSheetUM.Vector.Type.Attention -> TangemTheme.colors3.icon.status.warning
|
||||
MessageBottomSheetUM.Vector.Type.Warning -> TangemTheme.colors3.icon.status.error
|
||||
MessageBottomSheetUM.Vector.Type.Success -> TangemTheme.colors3.icon.status.success
|
||||
}
|
||||
|
||||
val backgroundColor = when (vector.backgroundType) {
|
||||
|
|
@ -223,6 +224,7 @@ private fun BottomSheetVector(vector: MessageBottomSheetUM.Vector, modifier: Mod
|
|||
MessageBottomSheetUM.Vector.BackgroundType.Informative -> TangemTheme.colors3.bg.status.infoSubtle
|
||||
MessageBottomSheetUM.Vector.BackgroundType.Attention -> TangemTheme.colors3.bg.status.warningSubtle
|
||||
MessageBottomSheetUM.Vector.BackgroundType.Warning -> TangemTheme.colors3.bg.status.errorSubtle
|
||||
MessageBottomSheetUM.Vector.BackgroundType.Success -> TangemTheme.colors3.bg.status.successSubtle
|
||||
}
|
||||
|
||||
Box(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue