diff --git a/src/frontends/qt4/ChangeLog b/src/frontends/qt4/ChangeLog index e33ead8d42..b2e8b443eb 100644 --- a/src/frontends/qt4/ChangeLog +++ b/src/frontends/qt4/ChangeLog @@ -1,3 +1,7 @@ +2006-03-16 Abdelrazak Younes + + * fixed inset button grey colors. + 2006-03-15 Abdelrazak Younes * QLPopupMenu.C: removed topLevelMenu_.clear() call. diff --git a/src/frontends/qt4/lcolorcache.C b/src/frontends/qt4/lcolorcache.C index fb7772bb33..53faf808ec 100644 --- a/src/frontends/qt4/lcolorcache.C +++ b/src/frontends/qt4/lcolorcache.C @@ -14,14 +14,18 @@ #include "LColor.h" -LColorCache lcolorcache; +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); LColorCache::LColorCache() { } - QColor const & LColorCache::get(LColor_color col) const { lcolor_map::const_iterator cit = colormap.find(col); @@ -29,13 +33,13 @@ QColor const & LColorCache::get(LColor_color col) const 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());