Merge pull request #1855 from SimonMarquis/deprecated-centerAlignedTopAppBarColors

Replace deprecated `centerAlignedTopAppBarColors` with `topAppBarColors`
pull/1861/head
Alex Vanyo 5 months ago committed by GitHub
commit 476baff45f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -216,7 +216,7 @@ internal fun NiaApp(
actionIconContentDescription = stringResource( actionIconContentDescription = stringResource(
id = settingsR.string.feature_settings_top_app_bar_action_icon_description, id = settingsR.string.feature_settings_top_app_bar_action_icon_description,
), ),
colors = TopAppBarDefaults.centerAlignedTopAppBarColors( colors = TopAppBarDefaults.topAppBarColors(
containerColor = Color.Transparent, containerColor = Color.Transparent,
), ),
onActionClick = { onTopAppBarActionClick() }, onActionClick = { onTopAppBarActionClick() },

@ -45,7 +45,7 @@ fun NiaTopAppBar(
actionIcon: ImageVector, actionIcon: ImageVector,
actionIconContentDescription: String, actionIconContentDescription: String,
modifier: Modifier = Modifier, modifier: Modifier = Modifier,
colors: TopAppBarColors = TopAppBarDefaults.centerAlignedTopAppBarColors(), colors: TopAppBarColors = TopAppBarDefaults.topAppBarColors(),
onNavigationClick: () -> Unit = {}, onNavigationClick: () -> Unit = {},
onActionClick: () -> Unit = {}, onActionClick: () -> Unit = {},
) { ) {

Loading…
Cancel
Save