Updated on 2026-08-14
This commit is contained in:
parent
16a190cbe7
commit
772ec7b53a
4 changed files with 16 additions and 12 deletions
|
|
@ -413,6 +413,10 @@
|
|||
<string name="home_button_scan">Scan Tangem</string>
|
||||
<string name="hot_crypto_add_token_subtitle">to %s</string>
|
||||
<string name="hot_crypto_token_network">On %s network</string>
|
||||
<string name="hw_activation_need_backup">Backup Now</string>
|
||||
<string name="hw_activation_need_description">To complete setup, back up your wallet and secure app access with a Access Code.</string>
|
||||
<string name="hw_activation_need_finish">Finish Now</string>
|
||||
<string name="hw_activation_need_title">Finish Wallet Activation</string>
|
||||
<string name="hw_backup_icloud_description">Recover an existing wallet stored in your iCloud backup</string>
|
||||
<string name="hw_backup_icloud_title">iCloud backup</string>
|
||||
<string name="hw_backup_need_action">Go to backup</string>
|
||||
|
|
@ -1424,6 +1428,7 @@
|
|||
<string name="warning_token_trustline_button_title">Enable Trustline</string>
|
||||
<string name="warning_token_trustline_subtitle">A Trustline must be enabled to receive this token. The network requires a %1$s %2$s reserve.</string>
|
||||
<string name="warning_token_trustline_title">Trustline Required</string>
|
||||
<string name="wc_alert_audit_malicious_domain">Malicious domain</string>
|
||||
<string name="wc_alert_audit_unknown_domain">Unknown domain</string>
|
||||
<string name="wc_alert_connect_anyway">Connect anyway</string>
|
||||
<string name="wc_alert_connection_timeout_description">Timeout error. Please, try again later.</string>
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ data class MessageBottomSheetUMV2(
|
|||
}
|
||||
|
||||
enum class BackgroundType {
|
||||
Unspecified, SameAsTint
|
||||
Unspecified, SameAsTint, Accent, Informative, Attention, Warning,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -26,8 +26,7 @@ internal object WcAlertsFactory {
|
|||
return messageBottomSheetUM {
|
||||
infoBlock {
|
||||
icon(R.drawable.img_knight_shield_32) {
|
||||
type = MessageBottomSheetUMV2.Icon.Type.Attention
|
||||
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.SameAsTint
|
||||
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.Attention
|
||||
}
|
||||
title = resourceReference(R.string.security_alert_title)
|
||||
body = resourceReference(R.string.wc_alert_domain_issues_description)
|
||||
|
|
@ -52,12 +51,11 @@ internal object WcAlertsFactory {
|
|||
return messageBottomSheetUM {
|
||||
infoBlock {
|
||||
icon(R.drawable.img_knight_shield_32) {
|
||||
type = MessageBottomSheetUMV2.Icon.Type.Warning
|
||||
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.SameAsTint
|
||||
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.Warning
|
||||
}
|
||||
title = resourceReference(R.string.security_alert_title)
|
||||
body = resourceReference(R.string.wc_alert_domain_issues_description)
|
||||
chip(resourceReference(R.string.wc_alert_audit_unknown_domain)) {
|
||||
chip(resourceReference(R.string.wc_alert_audit_malicious_domain)) {
|
||||
type = MessageBottomSheetUMV2.Chip.Type.Warning
|
||||
}
|
||||
}
|
||||
|
|
@ -78,8 +76,7 @@ internal object WcAlertsFactory {
|
|||
return messageBottomSheetUM {
|
||||
infoBlock {
|
||||
icon(R.drawable.img_attention_20) {
|
||||
type = MessageBottomSheetUMV2.Icon.Type.Warning
|
||||
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.SameAsTint
|
||||
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.Attention
|
||||
}
|
||||
title = resourceReference(R.string.wc_alert_unknown_error_title)
|
||||
body = if (errorMessage.isNullOrEmpty()) {
|
||||
|
|
@ -105,8 +102,7 @@ internal object WcAlertsFactory {
|
|||
return messageBottomSheetUM {
|
||||
infoBlock {
|
||||
icon(R.drawable.img_knight_shield_32) {
|
||||
type = MessageBottomSheetUMV2.Icon.Type.Warning
|
||||
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.SameAsTint
|
||||
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.Attention
|
||||
}
|
||||
title = resourceReference(R.string.security_alert_title)
|
||||
if (!description.isNullOrEmpty()) {
|
||||
|
|
@ -128,8 +124,7 @@ internal object WcAlertsFactory {
|
|||
return messageBottomSheetUM {
|
||||
infoBlock {
|
||||
icon(R.drawable.img_approvale2_20) {
|
||||
type = MessageBottomSheetUMV2.Icon.Type.Accent
|
||||
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.Unspecified
|
||||
backgroundType = MessageBottomSheetUMV2.Icon.BackgroundType.Accent
|
||||
}
|
||||
title = resourceReference(R.string.wc_alert_verified_domain_title)
|
||||
body = resourceReference(R.string.wc_alert_verified_domain_description, wrappedList(appName))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue