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

Commit d194d8d9 authored by Alejandro Nijamkin's avatar Alejandro Nijamkin
Browse files

PlatformButton: expose contentPadding and shape

Bug: 397989775
Test: tested as part of a larger project
Flag: EXEMPT no need to flag this
Change-Id: I57f9f4193d2cdfae40841ee244590dc187eadc30
parent e9389790
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import androidx.compose.material3.IconButtonDefaults
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp

@@ -40,12 +41,15 @@ fun PlatformButton(
    modifier: Modifier = Modifier,
    enabled: Boolean = true,
    colors: ButtonColors = filledButtonColors(),
    contentPadding: PaddingValues = ButtonPaddings,
    shape: Shape = ButtonDefaults.shape,
    content: @Composable RowScope.() -> Unit,
) {
    androidx.compose.material3.Button(
        modifier = modifier.heightIn(min = 36.dp),
        colors = colors,
        contentPadding = ButtonPaddings,
        contentPadding = contentPadding,
        shape = shape,
        onClick = onClick,
        enabled = enabled,
    ) {