* GuiSetBorder.cpp: lighter colour for disabled borders (not used currently).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33291 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-01-31 13:15:26 +00:00
parent 00bbabd00f
commit e916213ac0

View File

@ -119,7 +119,7 @@ void GuiSetBorder::drawLeft(bool draw)
{
QColor col(draw ? Qt::black : Qt::white);
if (!left_.enabled)
col = QColor("grey");
col = QColor(Qt::lightGray);
drawLine(col, m + l, m + l + 2, m + l, h - m - l - 1);
}
@ -128,7 +128,7 @@ void GuiSetBorder::drawRight(bool draw)
{
QColor col(draw ? Qt::black : Qt::white);
if (!right_.enabled)
col = QColor("grey");
col = QColor(Qt::lightGray);
drawLine(col, h - m - l + 1, m + l + 2, h - m - l + 1, h - m - l - 1);
}
@ -137,7 +137,7 @@ void GuiSetBorder::drawTop(bool draw)
{
QColor col(draw ? Qt::black : Qt::white);
if (!top_.enabled)
col = QColor("grey");
col = QColor(Qt::lightGray);
drawLine(col, m + l + 2, m + l, w - m - l - 1, m + l);
}
@ -146,7 +146,7 @@ void GuiSetBorder::drawBottom(bool draw)
{
QColor col(draw ? Qt::black : Qt::white);
if (!bottom_.enabled)
col = QColor("grey");
col = QColor(Qt::lightGray);
drawLine(col, m + l + 2, w - m - l + 1, w - m - l - 1, w - m - l + 1);
}