[Libreoffice-bugs] [Bug 125329] Automatic font color becomes invisible in Calc charts with dark background
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed May 20 13:25:06 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=125329
--- Comment #6 from Luke Deller <luke at deller.id.au> ---
Thanks Timur.
This commit 77e21bb36a2cdaaa0f4049dee0d45c5b2325c6e9 simply changes the
threshold at which a colour is considered "dark".
When I revert the change in commit 77e21bb36a2cdaaa0f4049dee0d45c5b2325c6e9
upon latest git master, I can still reproduce the problem using a document
background of "Dark Grey 3" (red=28,green=28,blue=28).
I suspect your bibisection was using a slightly lighter colour? Would it be
possible to repeat bibisection with a darker colour?
In terms of debugging the underlying problem, I notice that the decision to use
a white font comes from editeng/source/editeng/impedit3.cxx
ImpEditEngine::GetAutoColor()
(because if I change that to return COL_LIGHTRED instead of COL_WHITE then try
to reproduce this bug, the font color in the chart axis label becomes light red
when I resize the chart).
This wrong decision appears to be because it is referring to background colour
of the ImpEditEngine instance which is different from the background colour of
the chart.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200520/7d868165/attachment.htm>
More information about the Libreoffice-bugs
mailing list