1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 390245 - [hover] Wrong text color for expression hover

This commit is contained in:
Pawel Piech 2012-09-24 09:55:33 -07:00
parent 84e46a7b17
commit 521f90af28

View file

@ -380,6 +380,7 @@ public class ExpressionInformationControlCreator implements IInformationControlC
} }
}); });
setForegroundColor(getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
setBackgroundColor(getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND)); setBackgroundColor(getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
} }
@ -428,7 +429,16 @@ public class ExpressionInformationControlCreator implements IInformationControlC
} }
} }
@Override @Override
public void setForegroundColor(Color foreground) {
super.setForegroundColor(foreground);
if (fDetailPaneComposite != null) {
fDetailPaneComposite.setForeground(foreground);
}
fTree.setForeground(foreground);
}
@Override
public void setBackgroundColor(Color background) { public void setBackgroundColor(Color background) {
super.setBackgroundColor(background); super.setBackgroundColor(background);
if (fDetailPaneComposite != null) { if (fDetailPaneComposite != null) {