Re: Introducing transparent colors

Koji Yokota <[email protected]> Tue, 2 Jun 2026 14:00:35 +0900
Newsgroups gmane.editors.lyx.devel
Message-ID <[email protected]>
> 2026/05/31 22:20、Koji Yokota <[email protected]>のメール:
> 
> 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

-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel