Commit 7a94679f authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Nate Graham
Browse files

Make inactive tab color lighter for dark color schemes

So that it doesn't distract as much from the rest of the window content.
parent 44ff51d5
Pipeline #231451 passed with stage
in 3 minutes and 51 seconds
......@@ -1306,7 +1306,7 @@ void Helper::renderTabBarTab(QPainter *painter,
frameRect.adjust(1, 0, 0, 0);
}
const auto windowColor = palette.color(QPalette::Window);
bgBrush = windowColor.darker(windowColor.lightnessF() > 0.5 ? 120 : 160);
bgBrush = windowColor.darker(120);
const auto hover = alphaColor(hoverColor(palette), 0.2);
if (animated) {
bgBrush = KColorUtils::mix(bgBrush, hover, animation);
......
Supports Markdown
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