Commit 585cc994 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[DolphinView] Use correct color group

Use the inactive color group when the window is inactive and update when window state changes.

CCBUG: 404053

Differential Revision: https://phabricator.kde.org/D18811
parent bf44548a
......@@ -711,7 +711,7 @@ void DolphinView::stopLoading()
void DolphinView::updatePalette()
{
QColor color = KColorScheme(QPalette::Active, KColorScheme::View).background().color();
QColor color = KColorScheme(isActiveWindow() ? QPalette::Active : QPalette::Inactive, KColorScheme::View).background().color();
if (!m_active) {
color.setAlpha(150);
}
......@@ -740,6 +740,11 @@ bool DolphinView::eventFilter(QObject* watched, QEvent* event)
QPixmapCache::clear();
break;
case QEvent::WindowActivate:
case QEvent::WindowDeactivate:
updatePalette();
break;
case QEvent::KeyPress:
if (GeneralSettings::useTabForSwitchingSplitView()) {
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
......
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