Themes: Lighter toolbar borders

The toolbar border/separator lines for flat themes need to be a bit
lighter.

This change introduces StyleHelper::toolBarBorderColor and puts it into
use for drawing all toolbar borders.

Change-Id: Icef20759ce282e768f6ba867474e506b9230b864
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
Alessandro Portale
2016-07-19 18:24:25 +02:00
parent 0a72e887aa
commit 276b20409d
4 changed files with 26 additions and 11 deletions

View File

@@ -153,6 +153,14 @@ QColor StyleHelper::borderColor(bool lightColored)
return result;
}
QColor StyleHelper::toolBarBorderColor()
{
const QColor base = baseColor();
return QColor::fromHsv(base.hue(),
base.saturation() ,
clamp(base.value() * 0.80f));
}
// We try to ensure that the actual color used are within
// reasonalbe bounds while generating the actual baseColor
// from the users request.