Skip to content

Commit

Permalink
Add previews
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Sep 22, 2023
1 parent 0c2acd7 commit a4624c6
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,34 @@ private fun PreviewTopBar() {
}
}

@Preview
@Composable
private fun PreviewNoIconAndLogoTopBar() {
AppTheme {
TopBar(
backgroundColor = MaterialTheme.colorScheme.inversePrimary,
iconTintColor = MaterialTheme.colorScheme.onPrimary,
isIconAndLogoVisible = false,
onSettingsClicked = {},
onAccountClicked = null,
)
}
}

@Preview
@Composable
private fun PreviewNothingTopBar() {
AppTheme {
TopBar(
backgroundColor = MaterialTheme.colorScheme.inversePrimary,
iconTintColor = MaterialTheme.colorScheme.onPrimary,
isIconAndLogoVisible = false,
onSettingsClicked = null,
onAccountClicked = null
)
}
}

@Composable
fun TopBar(
backgroundColor: Color,
Expand Down

0 comments on commit a4624c6

Please sign in to comment.