Respect users choice on background color
svn path=/trunk/KDE/kdebase/workspace/; revision=699240
This commit is contained in:
parent
d7579555fd
commit
42639062fe
1 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ OxygenHelper::OxygenHelper(const QByteArray &componentName)
|
|||
{
|
||||
_config = _componentData.config();
|
||||
_contrast = KGlobalSettings::contrastF(_config);
|
||||
_bgcontrast = _contrast; // TODO get style setting
|
||||
_bgcontrast = 0.1;// // shouldn't use contrast for this _contrast; // TODO get style setting
|
||||
|
||||
m_backgroundCache.setMaxCost(64);
|
||||
m_roundCache.setMaxCost(64);
|
||||
|
@ -93,7 +93,7 @@ QColor OxygenHelper::backgroundBottomColor(const QColor &color) const
|
|||
if (lowThreshold(color))
|
||||
return KColorScheme::shade(color, KColorScheme::MidShade, 0.0);
|
||||
else
|
||||
return KColorScheme::shade(color, KColorScheme::MidShade, _bgcontrast - 1.1);
|
||||
return color;
|
||||
}
|
||||
|
||||
QColor OxygenHelper::calcLightColor(const QColor &color)
|
||||
|
|
Loading…
Reference in a new issue