Package org.pushingpixels.substance.api

Examples of org.pushingpixels.substance.api.SubstanceColorSchemeBundle


   *            The active color scheme.
   */
  public RobotDefaultDarkSkin(SubstanceColorScheme colorScheme) {
    SubstanceColorScheme inactiveScheme = new BlendBiColorScheme(
        colorScheme, new DarkMetallicColorScheme(), 0.6);
    SubstanceColorSchemeBundle defaultSchemeBundle = new SubstanceColorSchemeBundle(
        colorScheme, inactiveScheme, inactiveScheme);
    defaultSchemeBundle.registerColorScheme(inactiveScheme, 0.5f,
        ComponentState.DISABLED_UNSELECTED,
        ComponentState.DISABLED_SELECTED);

    this.registerDecorationAreaSchemeBundle(defaultSchemeBundle,
        DecorationAreaType.NONE);
View Full Code Here


      @Override
      public String getDisplayName() {
        return "Metallic Skin";
      }
    };
    res.registerDecorationAreaSchemeBundle(new SubstanceColorSchemeBundle(
        new MetallicColorScheme(), new MetallicColorScheme(),
        new LightGrayColorScheme()), DecorationAreaType.NONE);
    return res;
  }
View Full Code Here

    SubstanceColorScheme disabledScheme = new LightGrayColorScheme().tone(
        0.2).named("Mist Silver Disabled");
    SubstanceColorScheme lightBlueScheme = new SteelBlueColorScheme()
        .saturate(-0.3).tint(0.5).named("Mist Silver Light Blue");

    SubstanceColorSchemeBundle defaultSchemeBundle = new SubstanceColorSchemeBundle(
        activeScheme, enabledScheme, disabledScheme);
    defaultSchemeBundle.registerColorScheme(enabledScheme.tone(0.4),
        ColorSchemeAssociationKind.TEXT_HIGHLIGHT,
        ComponentState.SELECTED, ComponentState.ROLLOVER_SELECTED);
    defaultSchemeBundle.registerColorScheme(lightBlueScheme,
        ComponentState.SELECTED);
    defaultSchemeBundle.registerColorScheme(enabledScheme,
        ColorSchemeAssociationKind.BORDER, ComponentState.SELECTED);
    this.registerDecorationAreaSchemeBundle(defaultSchemeBundle,
        DecorationAreaType.NONE);

    this.registerDecorationAreaSchemeBundle(new SubstanceColorSchemeBundle(
        activeScheme, enabledScheme, disabledScheme), lightBlueScheme,
        DecorationAreaType.GENERAL);

    this.registerAsDecorationArea(enabledScheme,
        DecorationAreaType.PRIMARY_TITLE_PANE,
View Full Code Here

        .tint(0.15).named("Business Active");
    SubstanceColorScheme enabledScheme = new MetallicColorScheme().shade(
        0.1).named("Business Enabled");
    SubstanceColorScheme disabledScheme = enabledScheme;

    SubstanceColorSchemeBundle defaultSchemeBundle = new SubstanceColorSchemeBundle(
        activeScheme, enabledScheme, disabledScheme);

    SubstanceSkin.ColorSchemes kitchenSinkSchemes = SubstanceSkin
        .getColorSchemes("org/pushingpixels/substance/api/skin/kitchen-sink.colorschemes");
    SubstanceColorScheme highlightColorScheme = kitchenSinkSchemes
        .get("Business Highlight");
    defaultSchemeBundle.registerHighlightColorScheme(highlightColorScheme);

    defaultSchemeBundle.registerColorScheme(disabledScheme, 0.4f,
        ComponentState.DISABLED_UNSELECTED);
    defaultSchemeBundle.registerColorScheme(activeScheme, 0.4f,
        ComponentState.DISABLED_SELECTED);
    defaultSchemeBundle.registerColorScheme(activeScheme,
        ComponentState.SELECTED);
    this.registerDecorationAreaSchemeBundle(defaultSchemeBundle,
        DecorationAreaType.NONE);

    this.registerAsDecorationArea(enabledScheme,
View Full Code Here

        0.05).named("Business Black Steel Enabled");
    SubstanceColorScheme disabledScheme = new LightGrayColorScheme().tint(
        0.05).named("Business Black Steel Disabled");

    // the default color scheme bundle
    SubstanceColorSchemeBundle defaultSchemeBundle = new SubstanceColorSchemeBundle(
        activeScheme, enabledScheme, disabledScheme);
    defaultSchemeBundle.registerHighlightColorScheme(activeScheme, 0.6f,
        ComponentState.ROLLOVER_UNSELECTED);
    defaultSchemeBundle.registerHighlightColorScheme(activeScheme, 0.8f,
        ComponentState.SELECTED);
    defaultSchemeBundle.registerHighlightColorScheme(activeScheme, 0.95f,
        ComponentState.ROLLOVER_SELECTED);
    defaultSchemeBundle.registerHighlightColorScheme(activeScheme, 0.8f,
        ComponentState.ARMED, ComponentState.ROLLOVER_ARMED);
    this.registerDecorationAreaSchemeBundle(defaultSchemeBundle,
        DecorationAreaType.NONE);

    // color scheme bundle for title panes
    SubstanceColorScheme activeHeaderScheme = new EbonyColorScheme()
        .shiftBackground(Color.black, 0.3).tint(0.05).named(
            "Business Black Steel Active Header");
    SubstanceColorScheme enabledHeaderScheme = new EbonyColorScheme().tint(
        0.05).named("Business Black Steel Enabled Header");
    SubstanceColorSchemeBundle headerSchemeBundle = new SubstanceColorSchemeBundle(
        activeHeaderScheme, enabledHeaderScheme, disabledScheme);
    headerSchemeBundle.registerColorScheme(enabledHeaderScheme, 0.5f,
        ComponentState.DISABLED_UNSELECTED,
        ComponentState.DISABLED_SELECTED);
    headerSchemeBundle.registerHighlightColorScheme(activeScheme, 0.6f,
        ComponentState.ROLLOVER_UNSELECTED);
    headerSchemeBundle.registerHighlightColorScheme(activeScheme, 0.8f,
        ComponentState.SELECTED);
    headerSchemeBundle.registerHighlightColorScheme(activeScheme, 0.95f,
        ComponentState.ROLLOVER_SELECTED);
    headerSchemeBundle.registerHighlightColorScheme(activeScheme, 0.8f,
        ComponentState.ARMED, ComponentState.ROLLOVER_ARMED);

    this.registerDecorationAreaSchemeBundle(headerSchemeBundle,
        activeHeaderScheme, DecorationAreaType.PRIMARY_TITLE_PANE,
        DecorationAreaType.SECONDARY_TITLE_PANE,
        DecorationAreaType.HEADER);

    // color scheme bundle for general areas
    SubstanceColorScheme activeGeneralScheme = activeScheme.shade(0.1)
        .saturate(-0.5).named("Business Black Steel Active General");
    SubstanceColorScheme enabledGeneralScheme = activeScheme.tint(0.3)
        .saturate(-0.7).named("Business Black Steel Enabled General");
    SubstanceColorSchemeBundle generalSchemeBundle = new SubstanceColorSchemeBundle(
        activeGeneralScheme, enabledGeneralScheme, disabledScheme);
    generalSchemeBundle.registerColorScheme(disabledScheme, 0.5f,
        ComponentState.DISABLED_UNSELECTED);
    this.registerDecorationAreaSchemeBundle(generalSchemeBundle,
        DecorationAreaType.FOOTER, DecorationAreaType.GENERAL);

    // add an overlay painter to paint a drop shadow along the top
View Full Code Here

  public SaharaSkin() {
    SubstanceColorScheme activeScheme = new DesertSandColorScheme();
    SubstanceColorScheme enabledScheme = new MetallicColorScheme();
    SubstanceColorScheme disabledScheme = new LightGrayColorScheme();

    SubstanceColorSchemeBundle defaultSchemeBundle = new SubstanceColorSchemeBundle(
        activeScheme, enabledScheme, disabledScheme);
    defaultSchemeBundle.registerHighlightColorScheme(new OliveColorScheme()
        .tint(0.2).named("Sahara Highlight"));
    this.registerDecorationAreaSchemeBundle(defaultSchemeBundle,
        DecorationAreaType.NONE);

    this.registerAsDecorationArea(activeScheme,
View Full Code Here

    SubstanceColorScheme enabledScheme = schemes.get("Graphite Enabled");
    SubstanceColorScheme backgroundScheme = schemes
        .get("Graphite Background");

    // use the same color scheme for active and enabled controls
    SubstanceColorSchemeBundle defaultSchemeBundle = new SubstanceColorSchemeBundle(
        enabledScheme, enabledScheme, disabledScheme);

    // highlight fill scheme + custom alpha for rollover unselected state
    SubstanceColorScheme highlightScheme = schemes.get("Graphite Aqua");
    defaultSchemeBundle.registerHighlightColorScheme(highlightScheme,
        0.75f, ComponentState.ROLLOVER_UNSELECTED);
    defaultSchemeBundle.registerHighlightColorScheme(highlightScheme, 0.9f,
        ComponentState.SELECTED);
    defaultSchemeBundle.registerHighlightColorScheme(highlightScheme, 1.0f,
        ComponentState.ROLLOVER_SELECTED);
    defaultSchemeBundle.registerHighlightColorScheme(highlightScheme, 1.0f,
        ComponentState.ARMED, ComponentState.ROLLOVER_ARMED);

    defaultSchemeBundle.registerColorScheme(highlightScheme,
        ColorSchemeAssociationKind.BORDER,
        ComponentState.ROLLOVER_ARMED,
        ComponentState.ROLLOVER_SELECTED,
        ComponentState.ROLLOVER_UNSELECTED);
    defaultSchemeBundle.registerColorScheme(highlightScheme,
        ColorSchemeAssociationKind.FILL, ComponentState.SELECTED,
        ComponentState.ROLLOVER_SELECTED);

    // border schemes
    SubstanceColorScheme borderScheme = schemes.get("Graphite Border");
    SubstanceColorScheme separatorScheme = schemes
        .get("Graphite Separator");
    defaultSchemeBundle.registerColorScheme(highlightScheme,
        ColorSchemeAssociationKind.HIGHLIGHT_BORDER, ComponentState
            .getActiveStates());
    defaultSchemeBundle.registerColorScheme(borderScheme,
        ColorSchemeAssociationKind.BORDER);
    defaultSchemeBundle.registerColorScheme(separatorScheme,
        ColorSchemeAssociationKind.SEPARATOR);
    defaultSchemeBundle.registerColorScheme(borderScheme,
        ColorSchemeAssociationKind.MARK);

    // text highlight scheme
    defaultSchemeBundle.registerColorScheme(highlightScheme,
        ColorSchemeAssociationKind.TEXT_HIGHLIGHT,
        ComponentState.SELECTED, ComponentState.ROLLOVER_SELECTED);

    defaultSchemeBundle.registerColorScheme(highlightScheme,
        ComponentState.ARMED, ComponentState.ROLLOVER_ARMED);

    defaultSchemeBundle.registerColorScheme(disabledScheme, 0.5f,
        ComponentState.DISABLED_UNSELECTED);
    defaultSchemeBundle.registerColorScheme(selectedDisabledScheme, 0.5f,
        ComponentState.DISABLED_SELECTED);

    defaultSchemeBundle.registerColorScheme(highlightScheme,
        ComponentState.ROLLOVER_SELECTED);
    defaultSchemeBundle.registerColorScheme(selectedScheme,
        ComponentState.SELECTED);

    SubstanceColorScheme tabHighlightScheme = schemes
        .get("Graphite Tab Highlight");
    defaultSchemeBundle.registerColorScheme(tabHighlightScheme,
        ColorSchemeAssociationKind.TAB,
        ComponentState.ROLLOVER_SELECTED);

    this.registerDecorationAreaSchemeBundle(defaultSchemeBundle,
        backgroundScheme, DecorationAreaType.NONE);
View Full Code Here

    SubstanceColorScheme enabledScheme = new MetallicColorScheme().tint(
        0.05).named("Business Blue Steel Enabled");
    SubstanceColorScheme disabledScheme = new LightGrayColorScheme().tint(
        0.05).named("Business Blue Steel Disabled");

    SubstanceColorSchemeBundle defaultSchemeBundle = new SubstanceColorSchemeBundle(
        activeScheme, enabledScheme, disabledScheme);

    SubstanceSkin.ColorSchemes kitchenSinkSchemes = SubstanceSkin
        .getColorSchemes("org/pushingpixels/substance/api/skin/kitchen-sink.colorschemes");
    SubstanceColorScheme highlightColorScheme = kitchenSinkSchemes
        .get("Business Blue Steel Highlight");
    defaultSchemeBundle.registerHighlightColorScheme(highlightColorScheme);
    this.registerDecorationAreaSchemeBundle(defaultSchemeBundle,
        DecorationAreaType.NONE);

    SubstanceColorScheme activeHeaderScheme = activeScheme.saturate(0.2)
        .named("Business Blue Steel Active Header");
    SubstanceColorScheme enabledHeaderScheme = activeScheme.saturate(-0.2)
        .named("Business Blue Steel Enabled Header");
    SubstanceColorSchemeBundle headerSchemeBundle = new SubstanceColorSchemeBundle(
        activeHeaderScheme, enabledHeaderScheme, enabledHeaderScheme);
    headerSchemeBundle.registerColorScheme(enabledHeaderScheme, 0.5f,
        ComponentState.DISABLED_UNSELECTED,
        ComponentState.DISABLED_SELECTED);
    this.registerDecorationAreaSchemeBundle(headerSchemeBundle,
        DecorationAreaType.PRIMARY_TITLE_PANE,
        DecorationAreaType.SECONDARY_TITLE_PANE,
        DecorationAreaType.HEADER, DecorationAreaType.TOOLBAR);

    SubstanceColorScheme activeGeneralScheme = activeScheme.saturate(-0.5)
        .named("Business Blue Steel Active General");
    SubstanceColorScheme enabledGeneralScheme = activeScheme.tint(0.3)
        .saturate(-0.2).named("Business Blue Steel Enabled General");
    SubstanceColorSchemeBundle generalSchemeBundle = new SubstanceColorSchemeBundle(
        activeGeneralScheme, enabledGeneralScheme, disabledScheme);
    generalSchemeBundle.registerColorScheme(enabledGeneralScheme, 0.7f,
        ComponentState.DISABLED_UNSELECTED);
    this.registerDecorationAreaSchemeBundle(generalSchemeBundle,
        DecorationAreaType.FOOTER, DecorationAreaType.GENERAL);

    this.buttonShaper = new ClassicButtonShaper();
View Full Code Here

    SubstanceSkin.ColorSchemes schemes = SubstanceSkin
        .getColorSchemes("org/pushingpixels/substance/api/skin/dust.colorschemes");
    SubstanceColorScheme activeScheme = schemes.get("Dust Active");
    SubstanceColorScheme enabledScheme = schemes.get("Dust Enabled");

    SubstanceColorSchemeBundle defaultSchemeBundle = new SubstanceColorSchemeBundle(
        activeScheme, enabledScheme, enabledScheme);
    defaultSchemeBundle.registerColorScheme(enabledScheme, 0.5f,
        ComponentState.DISABLED_UNSELECTED);
    defaultSchemeBundle.registerColorScheme(activeScheme, 0.5f,
        ComponentState.DISABLED_SELECTED);

    // borders
    SubstanceColorScheme borderEnabledScheme = schemes
        .get("Dust Border Enabled");
    SubstanceColorScheme borderActiveScheme = schemes
        .get("Dust Border Active");

    defaultSchemeBundle.registerColorScheme(borderEnabledScheme,
        ColorSchemeAssociationKind.BORDER, ComponentState.ENABLED,
        ComponentState.DISABLED_SELECTED,
        ComponentState.DISABLED_UNSELECTED);
    defaultSchemeBundle.registerColorScheme(borderActiveScheme,
        ColorSchemeAssociationKind.BORDER, ComponentState
            .getActiveStates());
    defaultSchemeBundle.registerColorScheme(borderEnabledScheme,
        ColorSchemeAssociationKind.MARK);

    this.registerDecorationAreaSchemeBundle(defaultSchemeBundle,
        DecorationAreaType.NONE);

    // header color scheme bundle
    SubstanceColorScheme headerActiveScheme = schemes
        .get("Dust Header Active");
    SubstanceColorScheme headerEnabledScheme = schemes
        .get("Dust Header Enabled");

    SubstanceColorScheme headerWatermarkScheme = schemes
        .get("Dust Header Watermark");

    SubstanceColorScheme headerSeparatorScheme = schemes
        .get("Dust Header Separator");

    SubstanceColorScheme headerBorderScheme = schemes
        .get("Dust Header Border");

    SubstanceColorSchemeBundle headerSchemeBundle = new SubstanceColorSchemeBundle(
        headerActiveScheme, headerEnabledScheme, headerEnabledScheme);
    headerSchemeBundle.registerColorScheme(headerEnabledScheme, 0.7f,
        ComponentState.DISABLED_UNSELECTED);
    headerSchemeBundle.registerColorScheme(headerActiveScheme, 0.7f,
        ComponentState.DISABLED_SELECTED);

    headerSchemeBundle.registerColorScheme(headerBorderScheme,
        ColorSchemeAssociationKind.BORDER);
    headerSchemeBundle.registerColorScheme(headerSeparatorScheme,
        ColorSchemeAssociationKind.SEPARATOR);

    headerSchemeBundle.registerHighlightColorScheme(headerActiveScheme,
        1.0f);
    // the next line is to have consistent coloring during the rollover
    // menu animations
    headerSchemeBundle.registerHighlightColorScheme(headerActiveScheme,
        0.0f, ComponentState.ENABLED);

    this.registerDecorationAreaSchemeBundle(headerSchemeBundle,
        DecorationAreaType.TOOLBAR);
View Full Code Here

  public ChallengerDeepSkin() {
    SubstanceColorScheme activeScheme = new UltramarineColorScheme();
    SubstanceColorScheme enabledScheme = activeScheme.tone(0.1f).named(
        "Challenger Deep Enabled");

    SubstanceColorSchemeBundle defaultSchemeBundle = new SubstanceColorSchemeBundle(
        activeScheme, enabledScheme, enabledScheme);
    defaultSchemeBundle.registerColorScheme(activeScheme, 0.3f,
        ComponentState.DISABLED_SELECTED);
    defaultSchemeBundle.registerColorScheme(enabledScheme, 0.4f,
        ComponentState.DISABLED_UNSELECTED);
    this.registerDecorationAreaSchemeBundle(defaultSchemeBundle,
        DecorationAreaType.NONE);

    this.registerAsDecorationArea(enabledScheme,
View Full Code Here

TOP

Related Classes of org.pushingpixels.substance.api.SubstanceColorSchemeBundle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.