mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 20:01:55 +00:00
Fix rendering of wrong composable in preview
This commit is contained in:
+3
-3
@@ -38,8 +38,8 @@ fun CenterAlignedTopAppBar(
|
|||||||
navigationIcon: @Composable () -> Unit = {},
|
navigationIcon: @Composable () -> Unit = {},
|
||||||
actions: @Composable RowScope.() -> Unit = {},
|
actions: @Composable RowScope.() -> Unit = {},
|
||||||
windowInsets: WindowInsets = TopAppBarDefaults.windowInsets,
|
windowInsets: WindowInsets = TopAppBarDefaults.windowInsets,
|
||||||
colors: TopAppBarColors = TopAppBarDefaults.smallTopAppBarColors(),
|
colors: TopAppBarColors = TopAppBarDefaults.centerAlignedTopAppBarColors(),
|
||||||
scrollBehavior: TopAppBarScrollBehavior? = null
|
scrollBehavior: TopAppBarScrollBehavior? = null,
|
||||||
) {
|
) {
|
||||||
androidx.compose.material3.CenterAlignedTopAppBar(
|
androidx.compose.material3.CenterAlignedTopAppBar(
|
||||||
title = title,
|
title = title,
|
||||||
@@ -64,5 +64,5 @@ internal fun CenterAlignedTopAppBarDarkPreview() =
|
|||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
private fun ContentToPreview() {
|
private fun ContentToPreview() {
|
||||||
TopAppBar(title = { Text(text = "Title") })
|
CenterAlignedTopAppBar(title = { Text(text = "Title") })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user