mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
876ddf27b3
commit
a82cfc7d7f
@ -1075,9 +1075,7 @@ void Style::init(bool initial)
|
||||
#endif
|
||||
}
|
||||
|
||||
opts.contrast=QSettings(QLatin1String("Trolltech")).value("/Qt/KDE/contrast", DEFAULT_CONTRAST).toInt();
|
||||
if(opts.contrast<0 || opts.contrast>10)
|
||||
opts.contrast=DEFAULT_CONTRAST;
|
||||
opts.contrast=DEFAULT_CONTRAST; //Changed by Kovid
|
||||
|
||||
shadeColors(QApplication::palette().color(QPalette::Active, QPalette::Highlight), itsHighlightCols);
|
||||
shadeColors(QApplication::palette().color(QPalette::Active, QPalette::Background), itsBackgroundCols);
|
||||
@ -1522,7 +1520,7 @@ void Style::polish(QApplication *app)
|
||||
|
||||
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);
|
||||
|
||||
if(contrast<0 || contrast>10)
|
||||
|
Loading…
x
Reference in New Issue
Block a user