communi / communi-desktop

An IRC client for desktop environments
https://communi.github.io/
BSD 3-Clause "New" or "Revised" License
57 stars 22 forks source link

Allow themes to override nick colors #104

Closed amyreese closed 9 years ago

amyreese commented 9 years ago

This changes the nick coloring behavior to hash usernames into nine buckets, (ten including a color unique to the user), and then passing that bucket as a CSS class following the name "nick0". Themes then define color classes for "nick0" through "nick9".

The cute/dark theme colors use a similar HSL color selection process from the old behavior, where each bucket represents one ninth of the HSL color space (40° of the 360°). The tomorrow theme instead uses colors as specified in the Base16 standard.

jpnurmi commented 9 years ago

Thanks! :)