Skip to content

Commit

Permalink
Add previews
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa authored and Pururun committed Sep 25, 2023
1 parent 4842a6a commit 3fa1244
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 3fa1244

Please sign in to comment.