From 521f90af28071f85fa4680465a583e8d78f5f0d2 Mon Sep 17 00:00:00 2001 From: Pawel Piech Date: Mon, 24 Sep 2012 09:55:33 -0700 Subject: [PATCH] Bug 390245 - [hover] Wrong text color for expression hover --- .../ui/ExpressionInformationControlCreator.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/ExpressionInformationControlCreator.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/ExpressionInformationControlCreator.java index 88239eb1769..ca0ee3decc8 100644 --- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/ExpressionInformationControlCreator.java +++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/ExpressionInformationControlCreator.java @@ -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)); } @@ -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) { super.setBackgroundColor(background); if (fDetailPaneComposite != null) {