Updated on 2026-08-14
This commit is contained in:
parent
664305703e
commit
3b6629f7f4
7 changed files with 71 additions and 15 deletions
|
|
@ -572,6 +572,8 @@
|
|||
<string name="nft_receive_unavailable_asset_warning_message">You haven\'t added this network yet. To receive NFTs, add it to your portfolio.</string>
|
||||
<string name="nft_receive_unavailable_asset_warning_title">Network not added</string>
|
||||
<string name="nft_receive_unavailable_section_title">Not Added</string>
|
||||
<string name="nft_receive_unsupported_types">Unsupported NFT types</string>
|
||||
<string name="nft_receive_unsupported_types_description">cNFTs and pNFTs are not supported yet. Please don’t send them to your wallet.</string>
|
||||
<string name="nft_send">Send NFT</string>
|
||||
<string name="nft_traits_title">Traits</string>
|
||||
<string name="nft_untitled_collection">Untitled collection</string>
|
||||
|
|
|
|||
|
|
@ -57,7 +57,11 @@ fun Notification(
|
|||
titleColor: Color = TangemTheme.colors.text.primary1,
|
||||
subtitleColor: Color = TangemTheme.colors.text.tertiary,
|
||||
containerColor: Color? = null,
|
||||
iconTint: Color? = null,
|
||||
iconTint: Color? = when (config.iconTint) {
|
||||
NotificationConfig.IconTint.Unspecified -> null
|
||||
NotificationConfig.IconTint.Accent -> TangemTheme.colors.icon.accent
|
||||
NotificationConfig.IconTint.Attention -> TangemTheme.colors.icon.attention
|
||||
},
|
||||
iconSize: Dp = 20.dp,
|
||||
isEnabled: Boolean = true,
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ data class NotificationConfig(
|
|||
val onClick: (() -> Unit)? = null,
|
||||
val onCloseClick: (() -> Unit)? = null,
|
||||
val showArrowIcon: Boolean = onClick != null,
|
||||
val iconTint: IconTint = IconTint.Unspecified,
|
||||
) {
|
||||
|
||||
sealed class ButtonsState {
|
||||
|
|
@ -56,4 +57,10 @@ data class NotificationConfig(
|
|||
val onRightClick: () -> Unit,
|
||||
) : ButtonsState()
|
||||
}
|
||||
|
||||
enum class IconTint {
|
||||
Unspecified,
|
||||
Accent,
|
||||
Attention,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue