draw halo only for dark text

svn path=/trunk/KDE/kdelibs/; revision=1068659
This commit is contained in:
Marco Martin 2010-01-01 19:34:40 +00:00
parent 38d6c5bed9
commit ccc2e7be40

View File

@ -111,11 +111,13 @@ public:
{
QPainter p(this);
foreach (const QRectF &rect, m_haloRects) {
Plasma::PaintUtils::drawHalo(&p, rect);
}
if (Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor).value() < 128) {
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());
}