{"issue":{"title":"Dark author colors make text unreadable","user":{"login":"marcelklehr","id":986878,"url":"https://api.github.com/users/marcelklehr","avatar_url":"https://secure.gravatar.com/avatar/a3303ac80ba2e731f184779f86b641a9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a3303ac80ba2e731f184779f86b641a9"},"created_at":"2011-12-28T16:03:37Z","milestone":null,"state":"open","updated_at":"2011-12-28T16:03:37Z","labels":[],"id":2672339,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"html_url":"https://github.com/Pita/etherpad-lite/issues/303","body":"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.\r\n\r\nMy 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.\r\n\r\nYou 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.\r\n\r\nthanks in advance","number":303,"url":"https://api.github.com/repos/Pita/etherpad-lite/issues/303","comments":0,"assignee":null},"action":"opened"}