forked from qt-creator/qt-creator
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user