diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-10-05 18:20:19 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-06 00:01:30 +0100 |
commit | 44762c425233cb13d86d64360dbda54e975a7372 (patch) | |
tree | 0ff93d84e7b28321179c88da19ad2c561895e041 /qt-ui | |
parent | 437469e8ff349599cfdac243ad2d8a59ab6da6a2 (diff) | |
download | subsurface-44762c425233cb13d86d64360dbda54e975a7372.tar.gz |
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>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/modeldelegates.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index 5f493128b..6c0f860af 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -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(); |