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

--- Comment #8 from Noel Grandin <noelgran...@gmail.com> ---
(In reply to Julien Nabet from comment #7)
> Trying to understand a bit alpha and transparency (the "T" that we encounter
> in Color definition), I read in include/tools/color.hxx that T = 255 - alpha
> 
> 

So there are a couple of different issues at play here.

(1) The old libreoffice code mostly worked in terms of transparency, but modern
graphics APIs all use alpha, so we have been slowly moving things to use alpha,
so that less conversion is necessary.

> 448 inline constexpr ::Color COL_AUTO
> ( ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF );
> 

(2) Some parts of the system unfortunately use a magic color (COL_AUTO) to mean
"pick the correct color magically", which is very unfortunate, because
sometimes a valid color is confused as COL_AUTO.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to