mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
fixed inset buttons grey colors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13386 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f42db3f4b2
commit
371dc18f22
@ -1,3 +1,7 @@
|
||||
2006-03-16 Abdelrazak Younes <younes.a@free.fr>
|
||||
|
||||
* fixed inset button grey colors.
|
||||
|
||||
2006-03-15 Abdelrazak Younes <younes.a@free.fr>
|
||||
|
||||
* QLPopupMenu.C: removed topLevelMenu_.clear() call.
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user