Updated on 2026-08-14

This commit is contained in:
Tangem 2023-01-16 20:40:08 +03:00
parent 7458c8ca8b
commit 176209d318
9 changed files with 218 additions and 69 deletions

View file

@ -35,7 +35,6 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.Dp
import com.tangem.core.ui.R
import com.tangem.core.ui.res.TangemTheme
import com.tangem.core.ui.res.TangemTypography
/**
* [Show in Figma](https://www.figma.com/file/14ISV23YB1yVW1uNVwqrKv/Android?node-id=97%3A103&t=TmfD6UBHPg9uYfev-4)
@ -305,7 +304,7 @@ private fun ButtonContent(
}
Text(
text = text,
style = TangemTypography.button,
style = TangemTheme.typography.button,
color = colors.contentColor(enabled = enabled).value,
)
if (buttonIcon is TangemButtonIcon.Right) {

View file

@ -106,7 +106,7 @@ private fun TangemTextField(
.height(IntrinsicSize.Min)
.heightIn(size.toHeightDp()),
value = value,
textStyle = TangemTypography.body1,
textStyle = TangemTheme.typography.body1,
onValueChange = onValueChange,
singleLine = singleLine,
enabled = enabled,
@ -121,7 +121,7 @@ private fun TangemTextField(
if (!label.isNullOrEmpty()) {
Text(
text = label,
style = TangemTypography.caption,
style = TangemTheme.typography.caption,
color = colors.labelColor(
enabled = enabled,
error = isError,
@ -134,7 +134,7 @@ private fun TangemTextField(
if (!placeholder.isNullOrEmpty()) {
Text(
text = placeholder,
style = TangemTypography.body1,
style = TangemTheme.typography.body1,
color = colors.placeholderColor(enabled = enabled).value,
)
}