Improve click effect.

This commit is contained in:
Benoit Marty 2025-12-31 10:02:58 +01:00
parent 07be3d01b2
commit 6ca2c92440

View file

@ -17,6 +17,7 @@ import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.unit.dp
import io.element.android.compound.theme.ElementTheme
import io.element.android.libraries.designsystem.preview.ElementPreview
@ -39,9 +40,9 @@ fun PlaybackSpeedButton(
}
Box(
modifier = modifier
.clip(RoundedCornerShape(12.dp))
.background(
color = ElementTheme.colors.bgCanvasDefault,
shape = RoundedCornerShape(12.dp)
)
.clickable(onClick = onClick)
.padding(horizontal = 8.dp, vertical = 4.dp),