[Libreoffice-ux-advise] [Bug 156182] FORMATTING Automatic text color can be unreadable with darker cell colors

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jul 12 22:23:01 UTC 2023


https://bugs.documentfoundation.org/show_bug.cgi?id=156182

--- Comment #10 from Myndex <me at andysomers.com> ---
Hi Heiko Tietze

(In reply to Heiko Tietze from comment #9)
> (In reply to Myndex from comment #6)
> I disliked other thresholds. #4 with 0.36 goes with black font on dark red 2
> background, for example.


Yes, please see my comment #7: the code for #4 is incorrect, as that is not
"Andy's down and dirty"—the result has a square root that and should not be
there, that is why the 0.36 threshold is not working correctly.


Case 4 should be:

aLum = (Red(aColor)/255)^2.2 * 0.2126 + (Green(aColor)/255)^2.2 * 0.7152 +
(Blue(aColor)/255)^2.2 * 0.0722

Threshold = 0.36

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list