Abdelrazak Younes wrote:
rgheck wrote:
Abdelrazak Younes wrote:
The code is very weird:

if (isRequired("framed") && mustProvide("color")) {
    RGBColor c = rgbFromHexName(lcolor.getX11Name(Color_shadedbg));

This is the same problem discussed a while back concerning color handing:
   http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg135771.html
though no-one has yet done anything about it.

Ah yes, I remember. The solution does not seem difficult.

Here was what you said:
Qt understand X11 color names but we should probably go toward a cross platform definition indeed. Qt docs recommend the SVG color names:

http://www.w3.org/TR/SVG/types.html#ColorKeywords

void QColor::setNamedColor ( const QString & name )
Sets the RGB value of this QColor to name, which may be in one of these formats:
#RGB (each of R, G, and B is a single hex digit)
#RRGGBB
#RRRGGGBBB
#RRRRGGGGBBBB
A name from the list of colors defined in the list of SVG color keyword names provided by the World Wide Web Consortium; for example, "steelblue" or "gainsboro". These color names work on all platforms.
transparent - representing the absence of a color.
X11 only: If allowX11ColorNames() returns true, any valid X11 color name. See the documentation for XParseColor() for information about valid X11 color names.

rh


Reply via email to