Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiraj Modi2020-11-24 16:55:52 +0000
committerNiraj Modi2020-11-25 08:39:56 +0000
commit4a6583aa496f9afe2ad4208bfc7e72addf2602f6 (patch)
treece22c7f6d50caa98044a7ea41f4b797f444c9c1c
parenteca03dd06e1047d05748656cca2be255478f527c (diff)
downloadeclipse.platform.swt-4a6583aa496f9afe2ad4208bfc7e72addf2602f6.tar.gz
eclipse.platform.swt-4a6583aa496f9afe2ad4208bfc7e72addf2602f6.tar.xz
eclipse.platform.swt-4a6583aa496f9afe2ad4208bfc7e72addf2602f6.zip
Bug 567616 - win32 tree with SWT.FULL_SELECTION hard to see on dark
theme Change-Id: Ic3de470e1d2eb08844eafcefe93d5b9fbf5efe35 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
index d819157a20..f943972ec5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Tree.java
@@ -419,11 +419,7 @@ LRESULT CDDS_ITEMPOSTPAINT (NMTVCUSTOMDRAW nmcd, long wParam, long lParam) {
if (explorerTheme) {
int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);
if ((bits & OS.TVS_TRACKSELECT) != 0) {
- if ((style & SWT.FULL_SELECTION) != 0 && (selected || hot)) {
- OS.SetTextColor (hDC, OS.GetSysColor (OS.COLOR_WINDOWTEXT));
- } else {
- OS.SetTextColor (hDC, getForegroundPixel ());
- }
+ OS.SetTextColor (hDC, getForegroundPixel ());
}
}
}

Back to the top