Commit f46dfbad authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Port deprecated QPalette::background() -> QPalette::window()

parent a49b7fd1
......@@ -67,7 +67,7 @@ QColor WidgetColorizer::colorForId(uint id, const QPalette& activePalette, bool
qAbs((id / 50) % (high - low)),
qAbs((id / (50 * 50)) % (high - low)));
const auto& foreground = activePalette.windowText().color();
const auto& background = activePalette.background().color();
const auto& background = activePalette.window().color();
if (forBackground) {
return blendBackground(color, .5, foreground, background);
} else {
......
......@@ -55,7 +55,7 @@ ExpandingWidgetModel::~ExpandingWidgetModel()
static QColor doAlternate(const QColor& color)
{
QColor background = QApplication::palette().background().color();
QColor background = QApplication::palette().window().color();
return KColorUtils::mix(color, background, 0.15);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment