Skip to content

Commit

Permalink
Merge branch 'top-bar-color-on-welcome-screen-droid-837'
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Apr 22, 2024
2 parents eced118 + a15d373 commit 47a32b6
Showing 1 changed file with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,19 +176,8 @@ fun WelcomeScreen(
val snackbarHostState = remember { SnackbarHostState() }

ScaffoldWithTopBar(
topBarColor =
if (state.tunnelState.isSecured()) {
MaterialTheme.colorScheme.inversePrimary
} else {
MaterialTheme.colorScheme.error
},
iconTintColor =
if (state.tunnelState.isSecured()) {
MaterialTheme.colorScheme.onPrimary
} else {
MaterialTheme.colorScheme.onError
}
.copy(alpha = AlphaTopBar),
topBarColor = MaterialTheme.colorScheme.primary,
iconTintColor = MaterialTheme.colorScheme.onPrimary.copy(alpha = AlphaTopBar),
onSettingsClicked = onSettingsClick,
onAccountClicked = onAccountClick,
snackbarHostState = snackbarHostState,
Expand Down

0 comments on commit 47a32b6

Please sign in to comment.