Commit edf4b01c authored by Jan Blackquill's avatar Jan Blackquill 🌈 Committed by Nate Graham
Browse files

kcm/colors: don't dull accent colour on dark themes in colorsapplicator

User demand shows that bright accent colours are wanted over potentially
better legibility, so let's avoid changing them.

BUG: 442820
FIXED-IN: 5.25
(cherry picked from commit 6750353c)
parent 0f1c6bd9
Pipeline #161863 passed with stage
in 8 minutes
......@@ -47,13 +47,7 @@ inline QColor alphaBlend(const QColor &foreground, const QColor &background)
inline QColor accentBackground(const QColor& accent, const QColor& background)
{
auto c = accent;
// light bg
if (KColorUtils::luma(background) > 0.5) {
c.setAlphaF(0.7);
} else {
// dark bg
c.setAlphaF(0.4);
}
c.setAlphaF(0.7);
return alphaBlend(c, background);
}
......
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