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

Colored nicknames #15

Closed
casperstorm opened this issue Jun 8, 2023 · 2 comments · Fixed by #18
Closed

Colored nicknames #15

casperstorm opened this issue Jun 8, 2023 · 2 comments · Fixed by #18

Comments

@casperstorm
Copy link
Member

It's common that each nickname has it's own color, which helps readability.
For picking the colors we should use accent color converted to HSL and then pick a random hue value, while not touching saturation and lightning.

Stretch goals:

  • Caching the color to a file with nick@host and invalidated on theme change.
  • Enable/disable colored nicks in channel settings (#6)
@tarkah
Copy link
Member

tarkah commented Jun 8, 2023

I think we can implement without any caching. If we hash nick@host, we can use that as a seed for rng for the hue value and it should be deterministic. Maybe we cache at runtime for performance reasons, but we shouldn't need to persist it to fs

@casperstorm
Copy link
Member Author

Thats a great idea!

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 a pull request may close this issue.

2 participants