draw halo only for dark text
svn path=/trunk/KDE/kdelibs/; revision=1068659
This commit is contained in:
parent
38d6c5bed9
commit
ccc2e7be40
@ -111,11 +111,13 @@ public:
|
|||||||
{
|
{
|
||||||
QPainter p(this);
|
QPainter p(this);
|
||||||
|
|
||||||
foreach (const QRectF &rect, m_haloRects) {
|
if (Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor).value() < 128) {
|
||||||
Plasma::PaintUtils::drawHalo(&p, rect);
|
foreach (const QRectF &rect, m_haloRects) {
|
||||||
}
|
Plasma::PaintUtils::drawHalo(&p, rect);
|
||||||
|
}
|
||||||
|
|
||||||
p.translate(m_margin, m_margin);
|
p.translate(m_margin, m_margin);
|
||||||
|
}
|
||||||
m_document->drawContents(&p, event->rect());
|
m_document->drawContents(&p, event->rect());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user