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

Fix color to hexstring conversion #1779

Merged
merged 1 commit into from
Aug 24, 2024
Merged

Fix color to hexstring conversion #1779

merged 1 commit into from
Aug 24, 2024

Conversation

SystemKeeper
Copy link
Collaborator

Depending on the color choosen, we get a value above 1 for each of the color components (because of extended sRGB), resulting in an invalid hex string:

image

and setting a conversation avatar with emoji might fail.

So we make sure that we have a max value of 255.

@SystemKeeper SystemKeeper merged commit db18988 into master Aug 24, 2024
11 checks passed
@SystemKeeper SystemKeeper deleted the hex-color-fixes branch August 24, 2024 13:50
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.

1 participant