From: Abdelrazak Younes Date: Thu, 16 Mar 2006 10:52:20 +0000 (+0000) Subject: fixed inset buttons grey colors. X-Git-Tag: 1.6.10~13502 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=371dc18f227fe84c7e837bcb16b7a9eeac49904e;p=lyx.git fixed inset buttons grey colors. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13386 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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());