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:
parent
84e46a7b17
commit
521f90af28
1 changed files with 11 additions and 1 deletions
|
@ -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,6 +429,15 @@ public class ExpressionInformationControlCreator implements IInformationControlC
|
|||
}
|
||||
}
|
||||
|
||||
@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);
|
||||
|
|
Loading…
Add table
Reference in a new issue