Introducing transparent colors
Koji Yokota
yokota6 at gmail.com
Tue Jun 2 05:00:35 UTC 2026
> 2026/05/31 22:20、Koji Yokota <yokota6 at gmail.com>のメール:
>
> I attach a patch against master.
>
> The additional solution upgrades ColorSet class to be ARGB based (32bit hex) and update the following functions to handle both 16bit and 32bit hexes:
>
> - rgbFromHexName(): 16bit or 32bit hex -> RGBColor
> - getX11HexName(): (32bit ColorSet database) -> 16bit hex
> - getAllX11HexNames(): (32bit ColorSet database) -> pair of 16bit hex
> - setColor(): 16bit or 32bit hex -> (32bit ColorSet database)
>
> In the above functions, 16bit hex and RGBColor parts (esp. LaTeX-related) are not changed so they can be used as the same as before. 16bit colors are simply treated as solid colors in the 32bit color scheme.
>
> Also, following functions are newly introduced to interact in ARGB:
>
> - argbFromHexName(): 16bit or 32bit hex -> ARGBColor
> - get32bitHexName(): (32bit ColorSet database) -> 32bit hex
> - getAll32bitHexNames(): (32bit ColorSet database) -> pair of 32bit hex
>
> I think the above lists up all the interactions with the ColorSet database.
>
> As far as I tested, it looks working fine.
Committed to master.
I set transparent color to math and graphics background in addition to preedit background in all themes. If this is inappropriate, please let me know.
Koji
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20260602/05b39219/attachment.htm>
More information about the lyx-devel
mailing list