use of org.eclipse.ui.internal.themes.IThemeRegistry in project archi by archimatetool.
the class PaletteColorUtil method getThemeColor.
/**
* Added by Phillipus - get a theme color from the theme registry
*/
private static Color getThemeColor(final String id, RGB defaultColor) {
IThemeRegistry reg = WorkbenchPlugin.getDefault().getThemeRegistry();
ColorDefinition colorDef = reg.findColor(id);
if (colorDef != null && colorDef.getValue() != null) {
defaultColor = colorDef.getValue();
}
return new Color(defaultColor);
}
Aggregations