/** * Returns the default background color for the components of the specified * class. * * @param toTreatAsTextComponent * if the component is to be colored as a text component. * @param skin * Skin. * @param isDisabled * Indication whether the result should be for disabled * components. * @return The default background color for the components of the specified * class. */ public static ColorUIResource getDefaultBackgroundColor( boolean toTreatAsTextComponent, SubstanceSkin skin, boolean isDisabled) { if (toTreatAsTextComponent || isDisabled) return new ColorUIResource(skin.getEnabledColorScheme( DecorationAreaType.NONE).getTextBackgroundFillColor()); return new ColorUIResource(skin.getEnabledColorScheme( DecorationAreaType.NONE).getBackgroundFillColor()); }
/** * Returns the default background color for the components of the specified * class. * * @param componentClass * Component class. * @param skin * Skin. * @param isDisabled * Indication whether the result should be for disabled * components. * @return The default background color for the components of the specified * class. */ public static ColorUIResource getDefaultBackgroundColor( boolean toTreatAsTextComponent, SubstanceSkin skin, boolean isDisabled) { if (toTreatAsTextComponent || isDisabled) return new ColorUIResource(skin.getEnabledColorScheme( DecorationAreaType.NONE).getTextBackgroundFillColor()); return new ColorUIResource(skin.getEnabledColorScheme( DecorationAreaType.NONE).getBackgroundFillColor()); }
/** * 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 public void run() { if (textField == null) return; Color foregr = textField.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { textField .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(textField) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(textField)))); } } });
@Override public void run() { if (passwordField == null) return; Color foregr = passwordField.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { passwordField .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(passwordField) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(passwordField)))); } } });
this.loginPanel).getEnabledColorScheme( DecorationAreaType.HEADER))); originalGraphics.drawString(loginPanel.getBannerText(), loginStringX,
@Override public void run() { if (editorPane == null) return; Color foregr = editorPane.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { editorPane .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(editorPane) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(editorPane)))); } } });
@Override public void run() { if (passwordField == null) return; Color foregr = passwordField.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { passwordField .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(passwordField) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(passwordField)))); } } });
@Override public void run() { if (textField == null) return; Color foregr = textField.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { textField .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(textField) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(textField)))); } } });
@Override public void run() { if (textField == null) return; Color foregr = textField.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { textField .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(textField) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(textField)))); } } });
@Override public void run() { if (textPane == null) return; Color foregr = textPane.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { textPane .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(textPane) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(textPane)))); } } });
@Override public void run() { if (textField == null) return; Color foregr = textField.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { textField .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(textField) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(textField)))); } } });
@Override public void run() { if (textPane == null) return; Color foregr = textPane.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { textPane .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(textPane) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(textPane)))); } } });
@Override public void run() { if (editorPane == null) return; Color foregr = editorPane.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { editorPane .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(editorPane) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(editorPane)))); } } });
/** * 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 public void run() { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; if (textArea == null) return; Color foregr = textArea.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { textArea .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(textArea) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(textArea)))); } } });
@Override public void run() { if (!SubstanceLookAndFeel.isCurrentLookAndFeel()) return; if (textArea == null) return; Color foregr = textArea.getForeground(); if ((foregr == null) || (foregr instanceof UIResource)) { textArea .setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceLookAndFeel .getCurrentSkin(textArea) .getEnabledColorScheme( SubstanceLookAndFeel .getDecorationType(textArea)))); } } });
.getEnabledColorScheme(decorationType);
.getEnabledColorScheme(DecorationAreaType.PRIMARY_TITLE_PANE);
.getSkin(this.frame).getEnabledColorScheme(decorationType); JInternalFrame hostFrame = (JInternalFrame) SwingUtilities .getAncestorOfClass(JInternalFrame.class, this);