mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Do not use White font on newer Windows versions
It isn't readable with the very light background. Which Windows versions this should be used on is a guess right now. So far Windows 7 or newer, but that may need adjustment. Fixes #935 Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
437469e8ff
commit
44762c4252
1 changed files with 5 additions and 1 deletions
|
@ -558,7 +558,11 @@ print_part:
|
|||
|
||||
fontBigger.setPointSize(fontBigger.pointSize() + 1);
|
||||
fontBigger.setBold(true);
|
||||
QPen textPen = QPen(option.state & QStyle::State_Selected ? option.palette.brightText() : option.palette.text(), 1);
|
||||
QPen textPen;
|
||||
if(QSysInfo::windowsVersion() > QSysInfo::WV_VISTA)
|
||||
textPen = QPen(option.palette.text(), 1);
|
||||
else
|
||||
textPen = QPen(option.state & QStyle::State_Selected ? option.palette.brightText() : option.palette.text(), 1);
|
||||
|
||||
initStyleOption(&opt, index);
|
||||
opt.text = QString();
|
||||
|
|
Loading…
Reference in a new issue