#include "LColor.h"
-LColorCache lcolorcache;
+LColorCache lcolorcache;\r
+\r
+const QColor grey40(0x66, 0x66, 0x66);\r
+const QColor grey60(0x99, 0x99, 0x99);\r
+const QColor grey80(0xcc, 0xcc, 0xcc);\r
+const QColor grey90(0xe5, 0xe5, 0xe5);\r
LColorCache::LColorCache()
{
}
-
QColor const & LColorCache::get(LColor_color col) const
{
lcolor_map::const_iterator cit = colormap.find(col);
return cit->second;
if (lcolor.getX11Name(col) == "grey40")
- colormap[col] = Qt::lightGray;
+ colormap[col] = grey40;
else if (lcolor.getX11Name(col) == "grey60")
- colormap[col] = Qt::gray;
+ colormap[col] = grey60;
else if (lcolor.getX11Name(col) == "grey80")
- colormap[col] = Qt::darkGray;
+ colormap[col] = grey80;
else if (lcolor.getX11Name(col) == "grey90")
- colormap[col] = Qt::darkGray;
+ colormap[col] = grey90;
else
colormap[col] = QColor(lcolor.getX11Name(col).c_str());