Skip to content

Commit

Permalink
Use CircleShape instead of 50% RoundedCornerShape
Browse files Browse the repository at this point in the history
This is a builtin alias for the same thing.

Signed-off-by: Joe Groocock <[email protected]>
  • Loading branch information
frebib committed Oct 5, 2024
1 parent 1e4be64 commit 0b67dfd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
Expand Down Expand Up @@ -59,7 +60,7 @@ fun ProtectedView(
.border(
width = 1.dp,
color = ElementTheme.colors.borderInteractiveSecondary,
shape = RoundedCornerShape(percent = 50),
shape = CircleShape,
)
.padding(
horizontal = 16.dp,
Expand Down

0 comments on commit 0b67dfd

Please sign in to comment.