Skip to content

Commit 0b67dfd

Browse files
committed
Use CircleShape instead of 50% RoundedCornerShape
This is a builtin alias for the same thing. Signed-off-by: Joe Groocock <[email protected]>
1 parent 1e4be64 commit 0b67dfd

File tree

1 file changed

+2
-1
lines changed
  • features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/protection

1 file changed

+2
-1
lines changed

features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/protection/ProtectedView.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import androidx.compose.foundation.layout.Box
1414
import androidx.compose.foundation.layout.fillMaxSize
1515
import androidx.compose.foundation.layout.padding
1616
import androidx.compose.foundation.layout.size
17+
import androidx.compose.foundation.shape.CircleShape
1718
import androidx.compose.foundation.shape.RoundedCornerShape
1819
import androidx.compose.runtime.Composable
1920
import androidx.compose.ui.Alignment
@@ -59,7 +60,7 @@ fun ProtectedView(
5960
.border(
6061
width = 1.dp,
6162
color = ElementTheme.colors.borderInteractiveSecondary,
62-
shape = RoundedCornerShape(percent = 50),
63+
shape = CircleShape,
6364
)
6465
.padding(
6566
horizontal = 16.dp,

0 commit comments

Comments
 (0)