private SubstanceColorScheme getColorScheme() { SubstanceSkin skin = SubstanceCortex.GlobalScope.getCurrentSkin(); return skin.getActiveColorScheme( SubstanceSlices.DecorationAreaType.NONE); }
@Override public Icon getNumberIcon(int number) { SubstanceColorScheme colorScheme = SubstanceLookAndFeel.getCurrentSkin( null).getActiveColorScheme(DecorationAreaType.HEADER); return SubstanceImageCreator.getHexaMarker(number, colorScheme); }
@Override public Icon getNumberIcon(int number) { SubstanceColorScheme colorScheme = SubstanceLookAndFeel.getCurrentSkin( null).getActiveColorScheme(DecorationAreaType.HEADER); return SubstanceImageCreator.getHexaMarker(number, colorScheme); }
.getActiveColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE);
.getActiveColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE);
/** * Creates a new close action. */ public CloseAction() { super(SubstanceCoreUtilities.getResourceBundle(rootPane).getString( "SystemMenu.close"), SubstanceImageCreator.getCloseIcon( SubstanceCoreUtilities.getSkin(rootPane) .getActiveColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE), SubstanceCoreUtilities.getSkin(rootPane) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE))); }
/** * Creates a new iconify action. */ public IconifyAction() { super( SubstanceCoreUtilities.getResourceBundle(rootPane) .getString("SystemMenu.iconify"), SubstanceImageCreator .getMinimizeIcon( SubstanceCoreUtilities .getSkin(rootPane) .getActiveColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE), SubstanceCoreUtilities .getSkin(rootPane) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE))); }
/** * Creates a new close action. */ public CloseAction() { super(SubstanceCoreUtilities.getResourceBundle(rootPane).getString( "SystemMenu.close"), SubstanceImageCreator.getCloseIcon( SubstanceCoreUtilities.getSkin(rootPane) .getActiveColorScheme(getThisDecorationType()), SubstanceCoreUtilities.getSkin(rootPane) .getBackgroundColorScheme(getThisDecorationType()))); }
/** * Creates a new restore action. */ public RestoreAction() { super( SubstanceCoreUtilities.getResourceBundle(rootPane) .getString("SystemMenu.restore"), SubstanceImageCreator .getRestoreIcon( SubstanceCoreUtilities .getSkin(rootPane) .getActiveColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE), SubstanceCoreUtilities .getSkin(rootPane) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE))); }
/** * Creates a new maximize action. */ public MaximizeAction() { super( SubstanceCoreUtilities.getResourceBundle(rootPane) .getString("SystemMenu.maximize"), SubstanceImageCreator .getMaximizeIcon( SubstanceCoreUtilities .getSkin(rootPane) .getActiveColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE), SubstanceCoreUtilities .getSkin(rootPane) .getEnabledColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE))); }
@Override protected void installDefaults() { super.installDefaults(); if (SubstanceLookAndFeel.isCurrentLookAndFeel()) { this.setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceCoreUtilities.getSkin( this.frame).getActiveColorScheme( DecorationAreaType.SECONDARY_TITLE_PANE))); } // this.wasClosable = this.frame.isClosable(); }
/** * Returns the color scheme of the component. * * @param component * Component. * @param componentState * Component state. * @return Component color scheme. */ public static SubstanceColorScheme getActiveColorScheme( Component component, ComponentState componentState) { // special case - if the component is marked as flat and // it is in the default state, get the color scheme of the parent. // However, flat toolbars should be ignored, since they are // the "top" level decoration area. if (!(component instanceof JToolBar) && SubstanceCoreUtilities.hasFlatAppearance(component, false) && (componentState == ComponentState.ENABLED)) { component = component.getParent(); } SubstanceColorScheme nonColorized = SubstanceCoreUtilities.getSkin( component).getActiveColorScheme( SubstanceLookAndFeel.getDecorationType(component)); return getColorizedScheme(component, nonColorized, !componentState .isDisabled()); }
/** * Returns the color scheme of the component. * * @param component * Component. * @param associationKind * Association kind. * @param componentState * Component state. * @return Component color scheme. */ public static SubstanceColorScheme getActiveColorScheme( Component component, ComponentState componentState) { // special case - if the component is marked as flat and // it is in the default state, get the color scheme of the parent. // However, flat toolbars should be ignored, since they are // the "top" level decoration area. if (!(component instanceof JToolBar) && SubstanceCoreUtilities.hasFlatAppearance(component, false) && (componentState == ComponentState.ENABLED)) { component = component.getParent(); } SubstanceColorScheme nonColorized = SubstanceCoreUtilities.getSkin( component).getActiveColorScheme( SubstanceLookAndFeel.getDecorationType(component)); return getColorizedScheme(component, nonColorized, !componentState .isDisabled()); }
/** * Creates a new maximize action. */ public MaximizeAction() { super( SubstanceCoreUtilities.getResourceBundle(rootPane) .getString("SystemMenu.maximize"), SubstanceImageCreator .getMaximizeIcon( SubstanceCoreUtilities .getSkin(rootPane) .getActiveColorScheme( getThisDecorationType()), SubstanceCoreUtilities .getSkin(rootPane) .getEnabledColorScheme( getThisDecorationType()))); }
@Override protected void installDefaults() { super.installDefaults(); if (SubstanceLookAndFeel.isCurrentLookAndFeel()) { this.setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceCoreUtilities.getSkin( this.frame).getActiveColorScheme( getThisDecorationType()))); } // this.wasClosable = this.frame.isClosable(); }
/** * Creates a new iconify action. */ public IconifyAction() { super( SubstanceCoreUtilities.getResourceBundle(rootPane) .getString("SystemMenu.iconify"), SubstanceImageCreator .getMinimizeIcon( SubstanceCoreUtilities .getSkin(rootPane) .getActiveColorScheme( getThisDecorationType()), SubstanceCoreUtilities .getSkin(rootPane) .getBackgroundColorScheme( getThisDecorationType()))); }
/** * Creates a new restore action. */ public RestoreAction() { super( SubstanceCoreUtilities.getResourceBundle(rootPane) .getString("SystemMenu.restore"), SubstanceImageCreator .getRestoreIcon( SubstanceCoreUtilities .getSkin(rootPane) .getActiveColorScheme( getThisDecorationType()), SubstanceCoreUtilities .getSkin(rootPane) .getBackgroundColorScheme( getThisDecorationType()))); }
.getActiveColorScheme(DecorationAreaType.NONE); InsetsUIResource visualMargin = new InsetsUIResource(0, 0, 0, 0); Color foregroundColor = new ColorUIResource(colorScheme
.getActiveColorScheme(DecorationAreaType.NONE); InsetsUIResource visualMargin = new InsetsUIResource(0, 0, 0, 0); Color foregroundColor = new ColorUIResource(colorScheme
public Object[] getDefaults(Object mSkin) { SubstanceSkin skin = (SubstanceSkin) mSkin; final SubstanceColorScheme mainActiveScheme = skin .getActiveColorScheme(DecorationAreaType.NONE); SubstanceColorScheme mainEnabledScheme = skin .getEnabledColorScheme(DecorationAreaType.NONE);