@Override public Color getBackgroundFillColor(SubstanceColorScheme colorScheme) { return colorScheme.getExtraLightColor(); }
@Override public Color getSelectionBackgroundColor() { return this.scheme.getExtraLightColor(); }
@Override public Color query(SubstanceColorScheme scheme) { return scheme.getExtraLightColor(); } };
@Override public Color query(SubstanceColorScheme scheme) { return scheme.getExtraLightColor(); } };
@Override public Color getBackgroundFillColor() { return this.scheme.getExtraLightColor(); }
@Override public Color getSelectionBackgroundColor(SubstanceColorScheme colorScheme) { return colorScheme.getExtraLightColor(); }
@Override public Color getTextBackgroundFillColor(SubstanceColorScheme colorScheme) { return SubstanceColorUtilities.getInterpolatedColor(colorScheme .getUltraLightColor(), colorScheme.getExtraLightColor(), 0.8); } }
@Override public Color getTextBackgroundFillColor() { return SubstanceColorUtilities.getInterpolatedColor(this.scheme .getUltraLightColor(), this.scheme.getExtraLightColor(), 0.8); } }
public static Color getSeparatorDarkColor(SubstanceColorScheme scheme) { return scheme.isDark() ? scheme.getExtraLightColor() : SubstanceColorUtilities.getInterpolatedColor(scheme .getMidColor(), scheme.getDarkColor(), 0.4); }
public CopyMutableColorScheme(String name, SubstanceColorScheme copy) { super(name, copy.isDark()); foregroundColor = copy.getForegroundColor(); ultraLightColor = copy.getUltraLightColor(); extraLightColor = copy.getExtraLightColor(); lightColor = copy.getLightColor(); midColor = copy.getMidColor(); darkColor = copy.getDarkColor(); ultraDarkColor = copy.getUltraDarkColor(); }
/** * Returns the highlight color for the specified component. * * @param c * Component. * @return Matching highlight color. */ public Color getHighlightColor(Component c) { SubstanceColorScheme colorScheme = SubstanceColorSchemeUtilities .getColorScheme(c, ColorSchemeAssociationKind.SEPARATOR, ComponentState.ENABLED); boolean isDark = colorScheme.isDark(); Color foreDark = isDark ? colorScheme.getExtraLightColor() : SubstanceColorUtilities.getInterpolatedColor(colorScheme .getMidColor(), colorScheme.getDarkColor(), 0.4); return SubstanceColorUtilities.getAlphaColor(foreDark, 196); }
/** * Returns the highlight color for the specified component. * * @param c * Component. * @return Matching highlight color. */ public Color getHighlightColor(Component c) { SubstanceColorScheme colorScheme = SubstanceColorSchemeUtilities .getColorScheme(c, ColorSchemeAssociationKind.SEPARATOR, ComponentState.ENABLED); boolean isDark = colorScheme.isDark(); Color foreDark = isDark ? colorScheme.getExtraLightColor() : SubstanceColorUtilities.getInterpolatedColor(colorScheme .getMidColor(), colorScheme.getDarkColor(), 0.4); return SubstanceColorUtilities.getAlphaColor(foreDark, 196); }
/** * Creates a new saturated color scheme. * * @param origScheme * The original color scheme. * @param saturationFactor * Saturation factor. Should be in -1.0..1.0 range. */ public SaturatedColorScheme(SubstanceColorScheme origScheme, double saturationFactor) { super("Saturated (" + (int) (100 * saturationFactor) + "%) " + origScheme.getDisplayName(), getResolver(origScheme)); this.saturationFactor = saturationFactor; this.origScheme = origScheme; this.foregroundColor = origScheme.getForegroundColor(); this.mainUltraDarkColor = SubstanceColorUtilities.getSaturatedColor( origScheme.getUltraDarkColor(), saturationFactor); this.mainDarkColor = SubstanceColorUtilities.getSaturatedColor( origScheme.getDarkColor(), saturationFactor); this.mainMidColor = SubstanceColorUtilities.getSaturatedColor( origScheme.getMidColor(), saturationFactor); this.mainLightColor = SubstanceColorUtilities.getSaturatedColor( origScheme.getLightColor(), saturationFactor); this.mainExtraLightColor = SubstanceColorUtilities.getSaturatedColor( origScheme.getExtraLightColor(), saturationFactor); this.mainUltraLightColor = SubstanceColorUtilities.getSaturatedColor( origScheme.getUltraLightColor(), saturationFactor); }
/** * Creates a new saturated color scheme. * * @param origScheme * The original color scheme. * @param saturationFactor * Saturation factor. Should be in -1.0..1.0 range. */ public SaturatedColorScheme(SubstanceColorScheme origScheme, double saturationFactor) { super("Saturated (" + (int) (100 * saturationFactor) + "%) " + origScheme.getDisplayName(), origScheme.isDark()); this.saturationFactor = saturationFactor; this.origScheme = origScheme; this.foregroundColor = origScheme.getForegroundColor(); this.mainUltraDarkColor = SubstanceColorUtilities.getSaturatedColor( origScheme.getUltraDarkColor(), saturationFactor); this.mainDarkColor = SubstanceColorUtilities.getSaturatedColor( origScheme.getDarkColor(), saturationFactor); this.mainMidColor = SubstanceColorUtilities.getSaturatedColor( origScheme.getMidColor(), saturationFactor); this.mainLightColor = SubstanceColorUtilities.getSaturatedColor( origScheme.getLightColor(), saturationFactor); this.mainExtraLightColor = SubstanceColorUtilities.getSaturatedColor( origScheme.getExtraLightColor(), saturationFactor); this.mainUltraLightColor = SubstanceColorUtilities.getSaturatedColor( origScheme.getUltraLightColor(), saturationFactor); }
/** * Creates a new inverted scheme. * * @param origScheme * The original color scheme. */ public NegatedColorScheme(SubstanceColorScheme origScheme) { super("Negated " + origScheme.getDisplayName(), !origScheme.isDark()); this.origScheme = origScheme; this.foregroundColor = SubstanceColorUtilities.invertColor(origScheme .getForegroundColor()); this.mainUltraDarkColor = SubstanceColorUtilities .invertColor(origScheme.getUltraDarkColor()); this.mainDarkColor = SubstanceColorUtilities.invertColor(origScheme .getDarkColor()); this.mainMidColor = SubstanceColorUtilities.invertColor(origScheme .getMidColor()); this.mainLightColor = SubstanceColorUtilities.invertColor(origScheme .getLightColor()); this.mainExtraLightColor = SubstanceColorUtilities .invertColor(origScheme.getExtraLightColor()); this.mainUltraLightColor = SubstanceColorUtilities .invertColor(origScheme.getUltraLightColor()); }
/** * Creates a new inverted scheme. * * @param origScheme * The original color scheme. */ public NegatedColorScheme(SubstanceColorScheme origScheme) { super("Negated " + origScheme.getDisplayName(), getResolver(origScheme).invert()); this.origScheme = origScheme; this.foregroundColor = SubstanceColorUtilities.invertColor(origScheme .getForegroundColor()); this.mainUltraDarkColor = SubstanceColorUtilities .invertColor(origScheme.getUltraDarkColor()); this.mainDarkColor = SubstanceColorUtilities.invertColor(origScheme .getDarkColor()); this.mainMidColor = SubstanceColorUtilities.invertColor(origScheme .getMidColor()); this.mainLightColor = SubstanceColorUtilities.invertColor(origScheme .getLightColor()); this.mainExtraLightColor = SubstanceColorUtilities .invertColor(origScheme.getExtraLightColor()); this.mainUltraLightColor = SubstanceColorUtilities .invertColor(origScheme.getUltraLightColor()); }
/** * Creates a new hue-shifted color scheme. * * @param origScheme * The original color scheme. * @param hueShiftFactor * Shift factor. Should be in -1.0-1.0 range. */ public HueShiftColorScheme(SubstanceColorScheme origScheme, double hueShiftFactor) { super("Hue-shift " + origScheme.getDisplayName() + " " + (int) (100 * hueShiftFactor) + "%", getResolver(origScheme)); this.hueShiftFactor = hueShiftFactor; this.origScheme = origScheme; this.foregroundColor = SubstanceColorUtilities.getHueShiftedColor( origScheme.getForegroundColor(), this.hueShiftFactor / 2.0); this.mainUltraDarkColor = SubstanceColorUtilities.getHueShiftedColor( origScheme.getUltraDarkColor(), this.hueShiftFactor); this.mainDarkColor = SubstanceColorUtilities.getHueShiftedColor( origScheme.getDarkColor(), this.hueShiftFactor); this.mainMidColor = SubstanceColorUtilities.getHueShiftedColor( origScheme.getMidColor(), this.hueShiftFactor); this.mainLightColor = SubstanceColorUtilities.getHueShiftedColor( origScheme.getLightColor(), this.hueShiftFactor); this.mainExtraLightColor = SubstanceColorUtilities.getHueShiftedColor( origScheme.getExtraLightColor(), this.hueShiftFactor); this.mainUltraLightColor = SubstanceColorUtilities.getHueShiftedColor( origScheme.getUltraLightColor(), this.hueShiftFactor); }
/** * Creates a new hue-shifted color scheme. * * @param origScheme * The original color scheme. * @param hueShiftFactor * Shift factor. Should be in -1.0-1.0 range. */ public HueShiftColorScheme(SubstanceColorScheme origScheme, double hueShiftFactor) { super("Hue-shift " + origScheme.getDisplayName() + " " + (int) (100 * hueShiftFactor) + "%", origScheme.isDark()); this.hueShiftFactor = hueShiftFactor; this.origScheme = origScheme; this.foregroundColor = SubstanceColorUtilities.getHueShiftedColor( origScheme.getForegroundColor(), this.hueShiftFactor / 2.0); this.mainUltraDarkColor = SubstanceColorUtilities.getHueShiftedColor( origScheme.getUltraDarkColor(), this.hueShiftFactor); this.mainDarkColor = SubstanceColorUtilities.getHueShiftedColor( origScheme.getDarkColor(), this.hueShiftFactor); this.mainMidColor = SubstanceColorUtilities.getHueShiftedColor( origScheme.getMidColor(), this.hueShiftFactor); this.mainLightColor = SubstanceColorUtilities.getHueShiftedColor( origScheme.getLightColor(), this.hueShiftFactor); this.mainExtraLightColor = SubstanceColorUtilities.getHueShiftedColor( origScheme.getExtraLightColor(), this.hueShiftFactor); this.mainUltraLightColor = SubstanceColorUtilities.getHueShiftedColor( origScheme.getUltraLightColor(), this.hueShiftFactor); }
/** * Creates a new inverted scheme. * * @param origScheme * The original color scheme. */ public InvertedColorScheme(SubstanceColorScheme origScheme) { super("Inverted " + origScheme.getDisplayName(), !origScheme.isDark()); this.origScheme = origScheme; this.foregroundColor = SubstanceColorUtilities.invertColor(origScheme .getForegroundColor()); this.mainUltraDarkColor = SubstanceColorUtilities .invertColor(origScheme.getUltraLightColor()); this.mainDarkColor = SubstanceColorUtilities.invertColor(origScheme .getExtraLightColor()); this.mainMidColor = SubstanceColorUtilities.invertColor(origScheme .getLightColor()); this.mainLightColor = SubstanceColorUtilities.invertColor(origScheme .getMidColor()); this.mainExtraLightColor = SubstanceColorUtilities .invertColor(origScheme.getDarkColor()); this.mainUltraLightColor = SubstanceColorUtilities .invertColor(origScheme.getUltraDarkColor()); }
/** * Creates a new inverted scheme. * * @param origScheme * The original color scheme. */ public InvertedColorScheme(SubstanceColorScheme origScheme) { super("Inverted " + origScheme.getDisplayName(), getResolver(origScheme).invert()); this.origScheme = origScheme; this.foregroundColor = SubstanceColorUtilities.invertColor(origScheme .getForegroundColor()); this.mainUltraDarkColor = SubstanceColorUtilities .invertColor(origScheme.getUltraLightColor()); this.mainDarkColor = SubstanceColorUtilities.invertColor(origScheme .getExtraLightColor()); this.mainMidColor = SubstanceColorUtilities.invertColor(origScheme .getLightColor()); this.mainLightColor = SubstanceColorUtilities.invertColor(origScheme .getMidColor()); this.mainExtraLightColor = SubstanceColorUtilities .invertColor(origScheme.getDarkColor()); this.mainUltraLightColor = SubstanceColorUtilities .invertColor(origScheme.getUltraDarkColor()); }