Browse Source

Fix rendering of wrong composable in preview

misc/jme/add-logging-to-state-machine
Florian Renaud 2 years ago
parent
commit
604d9447e4
  1. 6
      libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/CenterAlignedTopAppBar.kt

6
libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/CenterAlignedTopAppBar.kt

@ -38,8 +38,8 @@ fun CenterAlignedTopAppBar( @@ -38,8 +38,8 @@ fun CenterAlignedTopAppBar(
navigationIcon: @Composable () -> Unit = {},
actions: @Composable RowScope.() -> Unit = {},
windowInsets: WindowInsets = TopAppBarDefaults.windowInsets,
colors: TopAppBarColors = TopAppBarDefaults.smallTopAppBarColors(),
scrollBehavior: TopAppBarScrollBehavior? = null
colors: TopAppBarColors = TopAppBarDefaults.centerAlignedTopAppBarColors(),
scrollBehavior: TopAppBarScrollBehavior? = null,
) {
androidx.compose.material3.CenterAlignedTopAppBar(
title = title,
@ -64,5 +64,5 @@ internal fun CenterAlignedTopAppBarDarkPreview() = @@ -64,5 +64,5 @@ internal fun CenterAlignedTopAppBarDarkPreview() =
@Composable
private fun ContentToPreview() {
TopAppBar(title = { Text(text = "Title") })
CenterAlignedTopAppBar(title = { Text(text = "Title") })
}

Loading…
Cancel
Save