@@ -0,0 +1,2547 @@
+package com.readytalk.swt.util;%0A%0Aimport org.eclipse.swt.graphics.Color;%0Aimport org.eclipse.swt.graphics.Font;%0Aimport org.eclipse.swt.graphics.Image;%0A%0A/**%0A * The purpose of this class is to capture a set of background colors, fonts, what have you%0A * and apply it to multiple components.%0A */%0Apublic class Palette %7B%0A  private Color backgroundColor;%0A  private Color%5B%5D backgroundGradientColors;%0A  private int%5B%5D backgroundGradientPercents;%0A  private boolean backgroundGradientVertical;%0A  private Image backgroundImage;%0A%0A  private Color foregroundColor;%0A%0A  private Color overlayColor;%0A%0A  private Font font;%0A%0A  public void setBackgroundColor(Color backgroundColor) %7B%0A    this.backgroundColor = backgroundColor;%0A  %7D%0A%0A  public void setBackgroundGradient(Color%5B%5D backgroundGradientColors, int%5B%5D backgroundGradientPercents) %7B%0A    this.backgroundGradientColors = backgroundGradientColors;%0A    this.backgroundGradientPercents = backgroundGradientPercents;%0A  %7D%0A%0A  public void setBackgroundGradient(Color%5B%5D backgroundGradientColors, int%5B%5D backgroundGradientPercents, boolean backgroundGradientVertical) %7B%0A    this.backgroundGradientColors = backgroundGradientColors;%0A    this.backgroundGradientPercents = backgroundGradientPercents;%0A    this.backgroundGradientVertical = backgroundGradientVertical;%0A  %7D%0A%0A  public void setBackgroundImage(Image backgroundImage) %7B%0A    this.backgroundImage = backgroundImage;%0A  %7D%0A%0A  public void setForegroundColor(Color foregroundColor) %7B%0A    this.foregroundColor = foregroundColor;%0A  %7D%0A%0A  public void setFont(Font font) %7B%0A    this.font = font;%0A  %7D%0A%0A  public void setOverlayColor(Color overlayColor) %7B%0A    this.overlayColor = overlayColor;%0A  %7D%0A%0A  public Color getBackgroundColor() %7B%0A    return backgroundColor;%0A  %7D%0A%0A  public boolean isGradientBackgroundAvailable() %7B%0A    return backgroundGradientColors != null && backgroundGradientPercents != null;%0A  %7D%0A%0A  public Color%5B%5D getBackgroundGradientColors() %7B%0A    return backgroundGradientColors;%0A  %7D%0A%0A  public int%5B%5D getBackgroundGradientPercents() %7B%0A    return backgroundGradientPercents;%0A  %7D%0A%0A  public boolean isBackgroundGradientVertical() %7B%0A    return backgroundGradientVertical;%0A  %7D%0A%0A  public Image getBackgroundImage() %7B%0A    return backgroundImage;%0A  %7D%0A%0A  public Color getForegroundColor() %7B%0A    return foregroundColor;%0A  %7D%0A%0A  public Font getFont() %7B%0A    return font;%0A  %7D%0A%0A  public Color getOverlayColor() %7B%0A    // if we don't specify an overlay, the foreground color is probably okay%0A    if(overlayColor == null) %7B%0A      return foregroundColor;%0A    %7D%0A    return overlayColor;%0A  %7D%0A%7D%0A

Add Palette helper.