frameColor.setAlpha(128);
painter.setPen(frameColor);
- const QColor backgrColor = KColorScheme(KColorScheme::View).background();
+ const QColor backgrColor = KColorScheme(QPalette::Active, KColorScheme::View).background().color();
painter.setBrush(backgrColor);
painter.drawRect(QRect(0, barTop + 1 , barWidth - widthDec, barHeight));
}
// draw text
- painter.setPen(KColorScheme(KColorScheme::View).foreground());
+ painter.setPen(KColorScheme(QPalette::Active, KColorScheme::View).foreground().color());
painter.drawText(QRect(1, 1, barWidth - 2, barHeight + 6),
Qt::AlignCenter | Qt::TextWordWrap,
text);
QColor StatusBarSpaceInfo::progressColor(const QColor& bgColor) const
{
- QColor color = KColorScheme(KColorScheme::Button).background();
+ QColor color = KColorScheme(QPalette::Active, KColorScheme::Button).background().color();
// assure that enough contrast is given between the background color
// and the progressbar color