mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 22:13:36 +02:00
...
This commit is contained in:
parent
876ddf27b3
commit
a82cfc7d7f
1 changed files with 2 additions and 4 deletions
|
|
@ -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…
Reference in a new issue