added "none" color special case.

TODO: see how to get rid of these special cases...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13642 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-04-11 09:59:56 +00:00
parent 107356b439
commit 1ddacf35e0

View 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());