Le 21/03/2017 à 22:39, Richard Heck a écrit :
Based on the documentation (Customizing Lyx: Features for the
Advanced User), only a handful of pre-defined colors are available
for use in layout files. The color of some elements are flexibly
changeable (full RGB), but in style declarations only the named
colors are available. Is there any way to work around that? If
nothing else, could I somehow re-define the named colours?

I'm not sure what the answer to this is. Let me have a look and get
back to you.

I've had a look at the code, and no, there's no way to define custom
colors. You can't even use the so-called "LyX colors", which can be
customized through Tools> Preferences> Colors and are listed in appendix
B of the Customization manual. At least, you can't use them for font
colors (though I think you can use them for inset backgrounds(.

It would not be that difficult to allow using color with explicit hex codes. And also we should allow to use LyX color code to define other colors. And support alpha channels. If someone want to start LyX hacking, it can be an interesting project.

JMarc

Reply via email to