colored icon indicating copy to clipboard operation
colored copied to clipboard

Get closest color if TrueColor not supported

Open spenserblack opened this issue 3 years ago • 0 comments

This PR makes TrueColor convert into one of the more "basic" colors (Color::Black, Color::Red, etc.) if TrueColor is not supported based on the COLORTERM environment variable. It gets the closest color based on Euclidean distance.

I'm not sure if some of the functions I added should be made public or not, so I left them private for now.

spenserblack avatar Oct 07 '20 14:10 spenserblack