Re: Forgotten format bump on transparency changes?

Pavel Sanda <[email protected]> Wed, 29 Jul 2026 10:34:26 +0200
Newsgroups gmane.editors.lyx.devel
Message-ID <[email protected]>
On Wed, Jul 29, 2026 at 03:24:48PM +0900, Koji Yokota wrote:
> I interpreted this extension as a change of ???values" since the old RGB format is still accepted as well as ARGB. All RGB colors are simply taken as solid ones.
> 
> In that case, would it better bump up the format number?

If you want to keep the alpha in .lyx you need to make sure that e.g. 2.5 (or
even older) handles that gracefuly so later lyx2lyx 2.6->2.5 conversion script
we finish at the end of 2.6 produces correct file from 2.5 point of view.

I just quickly assembled simple example of 2.5 .lyx file having your new
argument and it breaks at 2.5, the value wont survive resave gracefully and
replaces the value by the default color.

> > If so do we really need the flip X11hexname -> hex32name for normal colors?
> 
> 
> There are UI colors that use alpha values, so it seems a natural way to go. Since LaTeX is based on 16bit hex names, this change is basically limited to UI.

It's not limited to UI, I see the flip is in BufferParams::writeFile(),
and even glimpse test seem to break backward compatibility.

So again - is there good reason to support alpha for documents?
If yes we likely need version bump and correct handling in lyx2lyx so 2.6->older version chain work.
If not we likely need to keep old format for .lyx files to be preserved.

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