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(
id = settingsR.string.feature_settings_top_app_bar_action_icon_description,
),
colors = TopAppBarDefaults.centerAlignedTopAppBarColors(
colors = TopAppBarDefaults.topAppBarColors(
containerColor = Color.Transparent,
),
onActionClick = { onTopAppBarActionClick() },

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

Loading…
Cancel
Save