Pita/etherpad-lite — Issue #303: Dark author colors make text unreadable
Author: marcelklehr
Created: 2011-12-28 16:03:37+00:00
State: open

When you choose a dark author color in the User Interface (and sometimes you will have to choose a dark one) it is applied as background color of the text the spcific author wrote. As the text color always remains black (or something like black) you can't read what you or others wrote.

My sollution (that is to say, my suggestion) is: Write some condition to know if the chosen author color is too dark too read the text. If this applies, lighten up the text color (perhaps make it white) to increase the contrast and ensure readability.

You could get the value (as in hsv) of the text color and the value of the author color dynamically and substract one from the other to get the contrast.

thanks in advance