decorateIcons(decoration, resource);
}
private void decorateFontAndColour(IDecoration decoration,
IDecoratableResource resource) {
ITheme current = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme();
if (resource.isIgnored()) {
Color bc = current.getColorRegistry().get(
UIPreferences.THEME_IgnoredResourceBackgroundColor);
Color fc = current.getColorRegistry().get(
UIPreferences.THEME_IgnoredResourceForegroundColor);
Font f = current.getFontRegistry().get(
UIPreferences.THEME_IgnoredResourceFont);
setBackgroundColor(decoration, bc);
decoration.setForegroundColor(fc);
decoration.setFont(f);
} else if (!resource.isTracked()
|| resource.isDirty()
|| resource.staged() != Staged.NOT_STAGED) {
Color bc = current.getColorRegistry().get(UIPreferences.THEME_UncommittedChangeBackgroundColor);
Color fc = current.getColorRegistry().get(UIPreferences.THEME_UncommittedChangeForegroundColor);
Font f = current.getFontRegistry().get(UIPreferences.THEME_UncommittedChangeFont);
setBackgroundColor(decoration, bc);
decoration.setForegroundColor(fc);
decoration.setFont(f);
}