]> git.lyx.org Git - features.git/commitdiff
fixed inset buttons grey colors.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 16 Mar 2006 10:52:20 +0000 (10:52 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 16 Mar 2006 10:52:20 +0000 (10:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13386 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/ChangeLog
src/frontends/qt4/lcolorcache.C

index e33ead8d426150ae595bba9482a18c460f7e1fd6..b2e8b443eb20be0557e119f4bef8f9d5107c9cd5 100644 (file)
@@ -1,3 +1,7 @@
+2006-03-16  Abdelrazak Younes  <younes.a@free.fr>\r
+\r
+       * fixed inset button grey colors.\r
+\r
 2006-03-15  Abdelrazak Younes  <younes.a@free.fr>\r
 \r
        * QLPopupMenu.C: removed topLevelMenu_.clear() call.\r
index fb7772bb33599b2571fd3aec3f62ec4d65abc6c5..53faf808ec2cf8f420b3e0441b0039d216ba92c3 100644 (file)
 
 #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);
@@ -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());