Re: [LyX/master] Change preedit color settings

Scott Kostyshak <[email protected]> Mon, 6 Jul 2026 14:55:57 +0200
Newsgroups gmane.editors.lyx.devel
Message-ID <akulwZRL7KvrjVbT@jimmy>
On Sun, Jul 05, 2026 at 01:24:22PM +0200, Jürgen Spitzmüller wrote:
> Am Samstag, dem 04.07.2026 um 19:07 +0200 schrieb Jürgen Spitzmüller:
> > Am Samstag, dem 04.07.2026 um 16:25 +0200 schrieb Scott Kostyshak:
> > > Starting with this commit, my cursor turns black when it enters a
> > > math
> > > inset. I am using dark mode, in case it is relevant.
> > > 
> > > Can anyone reproduce?
> > 
> > Yes. The reason is that math background has been set to transparent,
> > but the cursor inversion code relies on it being a non-transparent
> > color to determine whether it is dark or light.
> 
> It turned the foreground/background optimization I have recently added
> has been broken by transparent color support.
> 
> I did what I could and have fixed the obvious cases. It is well
> possible that there are more bugs to discover. 

Thanks, Jürgen! Checked and works well.

Scott

-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEMfkICpsJzYuNuGlOA4ZnarZHC+sFAmpLpdwACgkQA4ZnarZH
C+uunAf/bvutr5FNpj4wkxlryTMviZ6Uqf14S6L8McZuL3z5HXl9uc8n2kh9iCm6
buintSSwggEADzlJSa4EWfiFsL9KPL2gin+pZ8a9F85Wt+u4KV62PQyM2qvC7IuR
SgG1aUDhrJVKjxLCVchRti/SlrC4IA5Us8h48wbCAKr7UHWyCTcYd5pDKzmSILQ1
GSBZOaJPCaYhNuSRXgEVqlZWVg4U5FjtWCy76lYnQYhfqCk2dqgvoAwMMFNbzfd5
R8GobPwYHIMdGt4MJnmpnDVIG3QAQOlV4nJG+OxJsMGrlfZkGqr2PYG03YMRNWd2
hQoGVuPRluF916jI2qUO9JD8ie7Fkw==
=i+rC
-----END PGP SIGNATURE-----