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

New avatar colors + tests #22

Merged
merged 12 commits into from
Aug 31, 2023
Merged

New avatar colors + tests #22

merged 12 commits into from
Aug 31, 2023

Conversation

Velin92
Copy link
Member

@Velin92 Velin92 commented Aug 31, 2023

In this PR I added the new avatar colors (which are now separated into background and foreground), improved the hashing function to match web, and included the same test that web uses to check the matching of the original string with the hashed color.

The PR also uses the same 8 colors as web, even if we are planning to only use 6 in the future.

element-hq/compound#137

@Velin92 Velin92 requested a review from a team as a code owner August 31, 2023 15:38
@Velin92 Velin92 requested review from stefanceriu and removed request for a team August 31, 2023 15:38
@Velin92 Velin92 requested a review from pixlwave August 31, 2023 15:40
Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

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

Welcome to the Compound Club 😎

Sources/Compound/Colors/CompoundColors.swift Outdated Show resolved Hide resolved
Sources/Compound/Colors/CompoundColors.swift Outdated Show resolved Hide resolved
Sources/Compound/Colors/CompoundColors.swift Outdated Show resolved Hide resolved
Sources/Compound/Colors/CompoundColors.swift Outdated Show resolved Hide resolved
Tests/CompoundTests/AvatarColorsTests.swift Outdated Show resolved Hide resolved
@Velin92 Velin92 merged commit 5ab4197 into main Aug 31, 2023
@pixlwave pixlwave deleted the mauroromito/avatar_colours branch September 19, 2023 14:40
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