This commit is contained in:
Kovid Goyal 2012-06-24 12:18:51 +05:30
parent 876ddf27b3
commit a82cfc7d7f

View File

@ -1075,9 +1075,7 @@ void Style::init(bool initial)
#endif #endif
} }
opts.contrast=QSettings(QLatin1String("Trolltech")).value("/Qt/KDE/contrast", DEFAULT_CONTRAST).toInt(); opts.contrast=DEFAULT_CONTRAST; //Changed by Kovid
if(opts.contrast<0 || opts.contrast>10)
opts.contrast=DEFAULT_CONTRAST;
shadeColors(QApplication::palette().color(QPalette::Active, QPalette::Highlight), itsHighlightCols); shadeColors(QApplication::palette().color(QPalette::Active, QPalette::Highlight), itsHighlightCols);
shadeColors(QApplication::palette().color(QPalette::Active, QPalette::Background), itsBackgroundCols); shadeColors(QApplication::palette().color(QPalette::Active, QPalette::Background), itsBackgroundCols);
@ -1522,7 +1520,7 @@ void Style::polish(QApplication *app)
void Style::polish(QPalette &palette) void Style::polish(QPalette &palette)
{ {
int contrast(QSettings(QLatin1String("Trolltech")).value("/Qt/KDE/contrast", DEFAULT_CONTRAST).toInt()); int contrast = DEFAULT_CONTRAST; // Changed by Kovid
bool newContrast(false); bool newContrast(false);
if(contrast<0 || contrast>10) if(contrast<0 || contrast>10)