Merge pull request #6165 from element-hq/feature/bma/fixFabColor

Use correct bg color.
This commit is contained in:
Benoit Marty 2026-02-10 10:51:26 +01:00 committed by GitHub
commit 3b4ed72925
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,12 +27,15 @@ import io.element.android.libraries.designsystem.preview.PreviewGroup
import io.element.android.libraries.testtags.TestTags
import io.element.android.libraries.testtags.testTag
/**
* Ref: https://www.figma.com/design/G1xy0HDZKJf5TCRFmKb5d5/Compound-Android-Components?node-id=2027-2043
*/
@Composable
fun FloatingActionButton(
onClick: () -> Unit,
modifier: Modifier = Modifier,
shape: Shape = FloatingActionButtonDefaults.shape,
containerColor: Color = ElementTheme.colors.textActionAccent,
containerColor: Color = ElementTheme.colors.bgAccentRest,
contentColor: Color = ElementTheme.colors.iconOnSolidPrimary,
elevation: FloatingActionButtonElevation = FloatingActionButtonDefaults.elevation(),
interactionSource: MutableInteractionSource = remember { MutableInteractionSource() },