Commit 53986ccd authored by Jan Blackquill's avatar Jan Blackquill 🏳🌈

Better colour adjustment

parent d7b5aab0
......@@ -396,7 +396,10 @@ void KColorSchemePrivate::init(const KSharedConfigPtr &config,
// common color schemes.
auto adjustHue = [=](QColor color) -> QColor {
auto normal = _brushes.fg[KColorScheme::NormalText].color();
int h = color.hslHue(), s = normal.hslSaturation(), l = normal.lightness(), a = 255;
int h = color.hslHue();
int s = (normal.hslSaturation()*0.4)+(color.hslSaturation()*0.6);
int l = (normal.lightness()*0.5)+(color.lightness()*0.5);
int a = 255;
QColor ret;
ret.setHsl(h, s, l, a);
return ret;
......
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