diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-10-07 17:13:00 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-07 18:35:37 +0100 |
commit | afed054d82776874592f02fe0c89966a69cbe993 (patch) | |
tree | 5b1a5b4577d206f9d72aad426dfea1d10a5cc436 /translations/subsurface_source.ts | |
parent | 2f89a2e6e27a9c659e5f7f661b2b09a9178f550a (diff) | |
download | subsurface-afed054d82776874592f02fe0c89966a69cbe993.tar.gz |
modeldelegates.cpp: add custom highlight drawing in location items
There is a problem in LocationFilterDelegate::paint(), which
can manifest as very light background with white text in the
combo box from which the user selects a location - a
Windows 7 test case.
The main offenders are the drawControl() call which draws the
selected item background very bright and the fact that
the highlightText() is returning white.
It seems as if the combination of these is just wrong, theme
wise.
e5fa424a and 44762c42 fix that by branching Windows by version,
but do not cover the case where the user can use a custom theme -
e.g. dark selection highlight on Windows 7.
This patch skips drawControl() and draws the highlighted item
background manually. It makes it look similar to the small
tag highlights in TagWidget.
The patch adjust slightly the X offset of the drawn text.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'translations/subsurface_source.ts')
0 files changed, 0 insertions, 0 deletions