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

--- Comment #18 from Heiko Tietze <[email protected]> ---
(In reply to Jean-François Fortin Tam from comment #17)
> It may be worth considering automatically toggling the use of the "inverted"
> variant when detecting that the user is running with the "prefer dark
> variant" GTK3 setting active (this can be found in the appearance settings
> in gnome-tweak-tool, for example). ...

And if someone has figured out how to change the theme under Windows? Or take
KDE, which is a big tweaking machine on its own. What I mean is you cannot
trust in a certain tool. But it should be rather an easy hack to calculate the
brightness from the system's background color, and adjust the icon set when set
to automatic.

I'm using this code 

  l:=ColorToRGB(Value);
  if (l and $00FF0000) shr 16+
     (l and $0000FF00) shr 8+
     (l and $000000FF) > 500 then
    Result:=clBlack else
    Result:=clWhite;

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to