about summary refs log tree commit diff stats
path: root/src/config/color.c
Commit message (Collapse)AuthorAgeFilesLines
* XEP-0392: get background color from themeMichael Vetter2020-01-221-1/+8
| | | | | | | So far we just used -1 (default color). Now we actually check whether `bkgnd` is set in the theme file and use this if available. Fix https://github.com/profanity-im/profanity/issues/1255
* Update my Copyright to 2020Michael Vetter2020-01-031-1/+1
|
* Improve color blindness handlingMichael Vetter2019-12-121-8/+12
| | | | Rename some things and use a swtich instead of if.
* Implement Color Vision Deficiencies settingMichael Vetter2019-12-121-5/+10
| | | | | | Implement settings for redgreen and blue blindness. Regards https://github.com/profanity-im/profanity/issues/1191
* XEP-0392: color: implement color hashingAurelien Aptel2019-12-031-281/+364
| | | | | | | | | | * 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...)
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Make sure memory in color_pair_cache_reset() was allocated.Michael Vetter2019-08-241-5/+8
| | | | | | | | Just to be on the safe side. Probably only relevant for unit tests where ncurses vars are not initialized with real values. Fix unit tests on all platforms.
* color: set capacity in unittest caseMichael Vetter2019-08-231-0/+5
| | | | Fix https://github.com/profanity-im/profanity/issues/1178
* Notify trying to load 256 colour theme in incapable terminalMichael Vetter2019-08-231-0/+7
|
* color: Include log.hMichael Vetter2019-08-231-0/+1
|
* Reformat color.cMichael Vetter2019-08-231-5/+7
|
* Use log_error() instead of g_warning()Michael Vetter2019-08-231-14/+17
|
* Add 256 colors supportAurelien Aptel2019-08-231-0/+418
Themes can now use color names from the xterm color name list [1]. 1: https://jonasjacek.github.io/colors/