Skip to content

Commit

Permalink
Fix avatar color previews
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinesp committed Sep 23, 2024
1 parent ac2cfa9 commit 91270a4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ fun avatarColors(): List<AvatarColors> {
@Preview
@Composable
internal fun AvatarColorsPreviewLight() {
val chunks = avatarColors().chunked(4)
ElementTheme {
val chunks = avatarColors().chunked(4)
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
for (chunk in chunks) {
AvatarColorRow(chunk)
Expand All @@ -55,8 +55,8 @@ internal fun AvatarColorsPreviewLight() {
@Preview
@Composable
internal fun AvatarColorsPreviewDark() {
val chunks = avatarColors().chunked(4)
ElementTheme(darkTheme = true) {
val chunks = avatarColors().chunked(4)
Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {
for (chunk in chunks) {
AvatarColorRow(chunk)
Expand Down

0 comments on commit 91270a4

Please sign in to comment.