1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00
profanity/src/config
Aurelien Aptel 4a672bda22 XEP-0392: color: implement color hashing
* add the HSL values of each of the 256 terminal colors
* add color_pair_cache_hash_str()
* move common code to _color_pair_cache_get() helper func

after hashing a string to a color, return the closest matching
terminal color using euclidian distance of the HSL diff vector (this
method was found empirically and seems to work well enough...)
2019-12-03 21:10:39 +01:00
..
account.c Add vim modeline 2019-11-13 12:11:05 +01:00
account.h Add vim modeline 2019-11-13 12:11:05 +01:00
accounts.c Add vim modeline 2019-11-13 12:11:05 +01:00
accounts.h Add vim modeline 2019-11-13 12:11:05 +01:00
color.c XEP-0392: color: implement color hashing 2019-12-03 21:10:39 +01:00
color.h XEP-0392: color: implement color hashing 2019-12-03 21:10:39 +01:00
conflists.c Add vim modeline 2019-11-13 12:11:05 +01:00
conflists.h Add vim modeline 2019-11-13 12:11:05 +01:00
files.c Add vim modeline 2019-11-13 12:11:05 +01:00
files.h Add vim modeline 2019-11-13 12:11:05 +01:00
preferences.c XEP-0392: config: add "color.nick" bool option 2019-12-03 21:10:39 +01:00
preferences.h XEP-0392: config: add "color.nick" bool option 2019-12-03 21:10:39 +01:00
scripts.c Add vim modeline 2019-11-13 12:11:05 +01:00
scripts.h Add vim modeline 2019-11-13 12:11:05 +01:00
theme.c Add vim modeline 2019-11-13 12:11:05 +01:00
theme.h Add vim modeline 2019-11-13 12:11:05 +01:00
tlscerts.c Add vim modeline 2019-11-13 12:11:05 +01:00
tlscerts.h Add vim modeline 2019-11-13 12:11:05 +01:00