Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update avatar colors to the new semantic ones in Compound #81

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

jmartinesp
Copy link
Member

I also needed to change the signature to a single composable function.

@jmartinesp jmartinesp added the Record-Screenshots Record new golden screenshots for the PR label Sep 23, 2024
@github-actions github-actions bot removed the Record-Screenshots Record new golden screenshots for the PR label Sep 23, 2024
@jmartinesp jmartinesp added the Record-Screenshots Record new golden screenshots for the PR label Sep 23, 2024
@github-actions github-actions bot removed the Record-Screenshots Record new golden screenshots for the PR label Sep 23, 2024
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am surprised that the colors are identical for light or dark. Maybe an issue in the code (see my other comment)

ElementTheme {
internal fun AvatarColorsPreviewDark() {
val chunks = avatarColors().chunked(4)
ElementTheme(darkTheme = true) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The avatarColors() should be invoked inside the ElementTheme block maybe?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be fixed in 91270a4. Nice catch!

@jmartinesp jmartinesp added the Record-Screenshots Record new golden screenshots for the PR label Sep 23, 2024
@github-actions github-actions bot removed the Record-Screenshots Record new golden screenshots for the PR label Sep 23, 2024
Copy link

sonarcloud bot commented Sep 23, 2024

Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update!

@jmartinesp jmartinesp merged commit afc2b6c into main Sep 23, 2024
1 check passed
@jmartinesp jmartinesp deleted the misc/jme/update-avatar-colors branch September 23, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants