mattinger
03/28/2025, 7:10 PMShapeKeyTokens.CornerFull -> CircleShape
Chrimaeon
03/28/2025, 7:29 PMmattinger
03/28/2025, 8:04 PMshape: Shape = ButtonDefaults.shape,
val shape: Shape
@Composable get() = FilledButtonTokens.ContainerShape.value
val ContainerShape = ShapeKeyTokens.CornerFull
ShapeKeyTokens.CornerFull -> CircleShape
val CircleShape = RoundedCornerShape(50)
In material2, it comes from the theme:
shape: Shape = MaterialTheme.shapes.small,
mattinger
03/28/2025, 8:07 PMChrimaeon
03/28/2025, 8:07 PMmattinger
03/28/2025, 8:08 PMChrimaeon
03/28/2025, 8:08 PMOutlinedButton(
onClick = { },
modifier = Modifier.padding(16.dp),
shape = MaterialTheme.shapes.extraLarge
) { }
mattinger
03/28/2025, 8:08 PMChrimaeon
03/28/2025, 8:08 PMmattinger
03/28/2025, 8:10 PMButton
out of the box and letting the theme change the roundingKirill Grouchnikov
03/29/2025, 1:27 AM