#include <config.h>
+#include "Color.h"
#include "lcolorcache.h"
#include "LColor.h"
-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;
+
+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()
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());
{
colormap.clear();
}
+
+
+QColor const rgb2qcolor(lyx::RGBColor const & rgb)
+{
+ return QColor(rgb.r, rgb.g, rgb.b);
+}