Re: [LyX/master] Change preedit color settings
Koji Yokota <[email protected]> Wed, 8 Jul 2026 10:06:02 +0900
| Newsgroups | gmane.editors.lyx.devel |
|---|---|
| Message-ID | <[email protected]> |
> 2026/07/06 21:45、[email protected]のメール: > > Am Montag, dem 06.07.2026 um 12:36 +0000 schrieb 横田 宏治: >> Oh, thanks a lot! I was searching what was wrong :-) > > Basically the problem was that the method that checks whether a color > is "light" or "dark" failed in the case of transparent colors, since > the transparent color is defined as #00ffffff (transparent white) which > was returned to that method as "white" RGB, which is "light", whereas > the background is actually dark in dark mode (when overlayed to a dark > background). > > I have now changed to RGBA for all these methods, and in the check, the > colors are overlayed with their background. > > A simpler fix would have been to defined a dark_transparent color > (transparent black) and use that for dark mode, but this would still > have failed for user-defined transparent colors. I see. Thanks a lot! I noticed the preview of equations have the same background as the main text, so in colored insets like LyX Comment, they are shown as if in another colored box. Can this be fixed e.g. using the transparency package or else? Koji -- lyx-devel mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-devel