Merge pull request #1855 from SimonMarquis/deprecated-centerAlignedTopAppBarColors

Replace deprecated `centerAlignedTopAppBarColors` with `topAppBarColors`
This commit is contained in:
Alex Vanyo
2025-04-03 14:20:57 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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() },

View File

@@ -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 = {},
) {