On 03/21/2017 04:23 PM, Richard Heck wrote:
> On 03/20/2017 06:59 AM, Csaba Pusztai wrote:
>> Hi,
>>
>> 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(.

I'd encourage you to file an enhancement request about this. At the
moment, there is no easy way to permit the definition and use of custom
colors. But maybe someone would want to take on the challenge of
generalizing this code.

Richard

Reply via email to