]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/lcolorcache.C
rename LFUN enum values according to their command (as used in th minibuffer/bind...
[lyx.git] / src / frontends / qt4 / lcolorcache.C
index bc4392c46b75f35ea218cd0fc70d407fdc3c5d89..eeb1102925ab7a798b2b355c13261e0e537e1f1e 100644 (file)
@@ -21,6 +21,7 @@ const QColor grey40(0x66, 0x66, 0x66);
 const QColor grey60(0x99, 0x99, 0x99);
 const QColor grey80(0xcc, 0xcc, 0xcc);
 const QColor grey90(0xe5, 0xe5, 0xe5);
+const QColor none = Qt::black;
 
 
 LColorCache::LColorCache()
@@ -41,6 +42,8 @@ QColor const & LColorCache::get(LColor_color col) const
                colormap[col] = grey80;
        else if (lcolor.getX11Name(col) == "grey90")
                colormap[col] = grey90;
+       else if (lcolor.getX11Name(col) == "none")
+               colormap[col] = none;
        else
                colormap[col] = QColor(lcolor.getX11Name(col).c_str());