Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit d4f98835 authored by Saalim Quadri's avatar Saalim Quadri
Browse files

fix: Match button outline with mock-ups

parent 97fe6947
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -275,6 +275,7 @@ private fun PrimaryActionArea(
    }

    val accentColor = MaterialTheme.colorScheme.tertiary
    val outlineColor = MaterialTheme.colorScheme.onBackground.copy(alpha = 0.25f)
    val animationDuration = 250

    val targetContainerColor = when {
@@ -285,8 +286,7 @@ private fun PrimaryActionArea(

    val targetBorderColor = when {
        uiState.isFilledStyle -> Color.Transparent
        uiState.enabled -> accentColor
        else -> accentColor.copy(alpha = 0.38f)
        else -> outlineColor
    }

    val targetTextColor = when {
@@ -360,6 +360,7 @@ private fun PrimaryActionArea(
                            maxLines = 1,
                            overflow = TextOverflow.Clip,
                            color = animatedTextColor.value,
                            style = MaterialTheme.typography.labelLarge,
                        )
                    }

@@ -369,6 +370,7 @@ private fun PrimaryActionArea(
                            maxLines = 1,
                            overflow = TextOverflow.Clip,
                            color = animatedTextColor.value,
                            style = MaterialTheme.typography.labelLarge,
                        )
                    }
                }