mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Fix label color updates in outline view
This commit is contained in:
parent
f5ddcb1de9
commit
b2f48c45c9
1 changed files with 3 additions and 1 deletions
|
@ -37,6 +37,7 @@ public class CUILabelProvider extends LabelProvider implements IColorProvider {
|
|||
private int fImageFlags;
|
||||
private int fTextFlags;
|
||||
private Color fInactiveColor;
|
||||
private Color fDefaultColor;
|
||||
|
||||
/**
|
||||
* Creates a new label provider with default flags.
|
||||
|
@ -233,11 +234,12 @@ public class CUILabelProvider extends LabelProvider implements IColorProvider {
|
|||
if (!include.isActive()) {
|
||||
if (fInactiveColor == null && Display.getCurrent() != null) {
|
||||
fInactiveColor= CUIPlugin.getStandardDisplay().getSystemColor(SWT.COLOR_DARK_GRAY);
|
||||
fDefaultColor= CUIPlugin.getStandardDisplay().getSystemColor(SWT.COLOR_LIST_FOREGROUND);
|
||||
}
|
||||
return fInactiveColor;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return fDefaultColor;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
Loading…
Add table
Reference in a new issue