Skip to content

Commit

Permalink
Merge pull request #664 from chickenjr/feature/597_override_appbar_color
Browse files Browse the repository at this point in the history
Override scrolledContainerColor of the TopAppBar
  • Loading branch information
takahirom authored Aug 20, 2024
2 parents 7df781a + 98d49a6 commit c79cdf5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ fun AnimatedTextTopAppBar(
navigationIcon: @Composable () -> Unit = {},
actions: @Composable RowScope.() -> Unit = {},
windowInsets: WindowInsets = TopAppBarDefaults.windowInsets,
colors: TopAppBarColors = TopAppBarDefaults.topAppBarColors(),
colors: TopAppBarColors = TopAppBarDefaults.topAppBarColors().copy(
scrolledContainerColor = MaterialTheme.colorScheme.surfaceContainer,
),
textColor: Color = MaterialTheme.colorScheme.onSurface,
scrollBehavior: TopAppBarScrollBehavior? = null,
) {
Expand Down

0 comments on commit c79cdf5

Please sign in to comment.