Commit e5b2ada1 authored by Manuel Rüger's avatar Manuel Rüger

ColorScheme: Fix DarkBackground Detection

Luminance is a value between 0 and 100.

https://bugs.kde.org/show_bug.cgi?id=416638
parent 9babfb2e
......@@ -403,7 +403,7 @@ bool ColorScheme::hasDarkBackground() const
const double g = backgroundColor().greenF();
const double b = backgroundColor().blueF();
rgb2hsluv(r, g, b, &h, &s, &l);
return l < 0.5;
return l < 50;
}
void ColorScheme::setOpacity(qreal opacity)
......
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