Updated on 2026-08-14
This commit is contained in:
parent
427715888d
commit
db9ec70213
15 changed files with 115 additions and 328 deletions
|
|
@ -19,6 +19,7 @@ import androidx.compose.ui.tooling.preview.Devices
|
|||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.tooling.preview.PreviewParameter
|
||||
import androidx.compose.ui.tooling.preview.datasource.CollectionPreviewParameterProvider
|
||||
import androidx.compose.ui.unit.dp
|
||||
import com.tangem.core.ui.components.SpacerW
|
||||
import com.tangem.core.ui.components.bottomsheets.TangemBottomSheet
|
||||
import com.tangem.core.ui.components.bottomsheets.TangemBottomSheetConfig
|
||||
|
|
@ -194,7 +195,7 @@ internal fun TransactionLabel(label: TransactionLabelUM, modifier: Modifier = Mo
|
|||
modifier = modifier
|
||||
.background(
|
||||
color = backgroundColor,
|
||||
shape = RoundedCornerShape(TangemTheme.dimens3.borderRadius.b250),
|
||||
shape = RoundedCornerShape(20.dp),
|
||||
)
|
||||
.padding(
|
||||
vertical = TangemTheme.dimens2.x3,
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ internal fun TangemPayAddCardView(onClick: () -> Unit, modifier: Modifier = Modi
|
|||
height = TangemTheme.dimens2.x10,
|
||||
width = TangemTheme.dimens2.x14,
|
||||
)
|
||||
.clip(RoundedCornerShape(TangemTheme.dimens3.borderRadius.b075))
|
||||
.clip(RoundedCornerShape(6.dp))
|
||||
.background(TangemTheme.colors3.bg.opaque.primary)
|
||||
.clickableSingle(onClick = onClick),
|
||||
contentAlignment = Alignment.Center,
|
||||
|
|
@ -132,7 +132,7 @@ private fun CardBackground(
|
|||
|
||||
Box(
|
||||
modifier = modifier
|
||||
.clip(RoundedCornerShape(TangemTheme.dimens3.borderRadius.b075))
|
||||
.clip(RoundedCornerShape(6.dp))
|
||||
.drawBehind {
|
||||
drawRect(bgColor)
|
||||
|
||||
|
|
@ -159,7 +159,7 @@ private fun CardBackground(
|
|||
.border(
|
||||
width = 1.dp,
|
||||
color = TangemTheme.colors3.border.primary,
|
||||
shape = RoundedCornerShape(TangemTheme.dimens3.borderRadius.b075),
|
||||
shape = RoundedCornerShape(6.dp),
|
||||
)
|
||||
.clickableSingle(onClick = onClick),
|
||||
content = content,
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ private fun ComponentPreview(state: TangemShimmerStory) {
|
|||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(horizontal = 16.dp)
|
||||
.clip(RoundedCornerShape(TangemTheme.dimens3.borderRadius.b200))
|
||||
.clip(RoundedCornerShape(16.dp))
|
||||
.background(TangemTheme.colors3.bg.secondary)
|
||||
.padding(vertical = 24.dp, horizontal = 16.dp),
|
||||
) {
|
||||
|
|
@ -145,7 +145,7 @@ private fun ChipSection(label: String, content: @Composable () -> Unit) {
|
|||
|
||||
@Composable
|
||||
private fun <T> ChipGrid(items: List<T>, label: (T) -> String, isSelected: (T) -> Boolean, onSelect: (T) -> Unit) {
|
||||
val shape = RoundedCornerShape(TangemTheme.dimens3.borderRadius.full)
|
||||
val shape = RoundedCornerShape(999.dp)
|
||||
Row(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
|
|
@ -153,7 +153,7 @@ private fun <T> ChipGrid(items: List<T>, label: (T) -> String, isSelected: (T) -
|
|||
.clip(shape)
|
||||
.background(TangemTheme.colors3.bg.opaque.primary)
|
||||
.border(
|
||||
width = TangemTheme.dimens3.borderWidth.sm,
|
||||
width = 1.dp,
|
||||
color = TangemTheme.colors3.border.primary,
|
||||
shape = shape,
|
||||
)
|
||||
|
|
@ -173,7 +173,7 @@ private fun <T> ChipGrid(items: List<T>, label: (T) -> String, isSelected: (T) -
|
|||
|
||||
@Composable
|
||||
private fun Chip(label: String, selected: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier) {
|
||||
val chipShape = RoundedCornerShape(TangemTheme.dimens3.borderRadius.full)
|
||||
val chipShape = RoundedCornerShape(999.dp)
|
||||
Box(
|
||||
contentAlignment = Alignment.Center,
|
||||
modifier = modifier
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue