1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

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
This commit is contained in:
Jonah Graham 2021-05-14 16:40:49 -04:00
parent 2c63592dd6
commit 78b9b1e16c

View file

@ -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) {