Skip to content

Commit

Permalink
Change dismiss item background
Browse files Browse the repository at this point in the history
  • Loading branch information
mdrlzy committed Oct 6, 2024
1 parent 8ec1677 commit 91b5432
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private fun DismissBackground(
) {
val color =
when (state.dismissDirection) {
SwipeToDismissBoxValue.EndToStart -> ArkColor.UtilityError200
SwipeToDismissBoxValue.EndToStart -> ArkColor.UtilityError500
else -> if (isPinned) ArkColor.FGQuarterary else ArkColor.Secondary
}

Expand Down Expand Up @@ -150,11 +150,11 @@ private fun DismissBackground(
}
Spacer(modifier = Modifier)
if (state.dismissDirection == SwipeToDismissBoxValue.EndToStart) {
Icon(
Text(
modifier = Modifier.padding(end = 17.dp),
painter = painterResource(id = R.drawable.ic_delete),
contentDescription = "",
tint = ArkColor.FGErrorPrimary,
text = stringResource(R.string.delete),
fontWeight = FontWeight.Medium,
color = Color.White,
)
}
}
Expand Down

0 comments on commit 91b5432

Please sign in to comment.