Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2021-05-14 20:40:49 +0000
committerJonah Graham2021-05-15 20:21:33 +0000
commit78b9b1e16cafc2b44e37b6df35615420c0f905d5 (patch)
tree597f501a02a5de686fbc31ea777d8ff1c4d04847 /core/org.eclipse.cdt.ui/src/org/eclipse
parent2c63592dd62e2f60b6e72f516b16b4e98fb1f4ce (diff)
downloadorg.eclipse.cdt-78b9b1e16cafc2b44e37b6df35615420c0f905d5.tar.gz
org.eclipse.cdt-78b9b1e16cafc2b44e37b6df35615420c0f905d5.tar.xz
org.eclipse.cdt-78b9b1e16cafc2b44e37b6df35615420c0f905d5.zip
Bug 573498: Fix bg color when hovering over annotations in dark mode
SWT.COLOR_GRAY is gray in dark or light mode, but COLOR_TEXT_DISABLED_BACKGROUND changes with the theme so always leaves the text legible. Change-Id: I3d0c2d1a19baa618ef08c5c40e35fbdda11691e2
Diffstat (limited to 'core/org.eclipse.cdt.ui/src/org/eclipse')
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/AnnotationExpansionControl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/AnnotationExpansionControl.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/AnnotationExpansionControl.java
index 49e2a35d93a..5709c9d9a7d 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/AnnotationExpansionControl.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/AnnotationExpansionControl.java
@@ -900,7 +900,7 @@ public class AnnotationExpansionControl implements IInformationControl, IInforma
}
private Color getHighlightColor(Display disp) {
- return disp.getSystemColor(SWT.COLOR_GRAY);
+ return disp.getSystemColor(SWT.COLOR_TEXT_DISABLED_BACKGROUND);
}
private Color getSelectionColor(Display disp) {

Back to the top