@Override protected void installDefaults(JXHeader h) { // this.descriptionPane = new SubstanceDescriptionPane(); // this.descriptionPane.setLineWrap(true); // this.descriptionPane.setOpaque(false); super.installDefaults(h); SubstanceLookAndFeel.setDecorationType(h, DecorationAreaType.HEADER); }
@Override protected void installDefaults(JXStatusBar sb) { super.installDefaults(sb); SubstanceLookAndFeel.setDecorationType(sb, DecorationAreaType.FOOTER); }
@Override protected void installDefaults() { super.installDefaults(); SubstanceLookAndFeel.setDecorationType(this.toolBar, DecorationAreaType.TOOLBAR); }
@Override protected void installDefaults() { super.installDefaults(); SubstanceLookAndFeel.setDecorationType(this.menuBar, DecorationAreaType.HEADER); }
@Override protected void installDefaults() { super.installDefaults(); SubstanceLookAndFeel.setDecorationType(this.menuBar, DecorationAreaType.HEADER); }
@Override protected void installDefaults() { super.installDefaults(); SubstanceLookAndFeel.setDecorationType(this.toolBar, DecorationAreaType.TOOLBAR); }
@Override protected void installDefaults() { SubstanceLookAndFeel.setDecorationType(this.group, DecorationAreaType.GENERAL); super.installDefaults(); }
@Override protected JXPanel createAndConfigureTopPanel(JXTitledPanel titledPanel) { JXPanel result = super.createAndConfigureTopPanel(titledPanel); SubstanceLookAndFeel.setDecorationType(result, DecorationAreaType.HEADER); return result; }
@Override protected void installDefaults() { super.installDefaults(); this.taskPane.setBackgroundPainter(null); SubstanceLookAndFeel.setDecorationType(this.taskPane, DecorationAreaType.GENERAL); }
/** * Simple constructor. * * @param f * Associated internal frame. */ public SubstanceInternalFrameTitlePane(JInternalFrame f) { super(f); this.setToolTipText(f.getTitle()); SubstanceLookAndFeel.setDecorationType(this, DecorationAreaType.SECONDARY_TITLE_PANE); }
/** * Simple constructor. * * @param f * Associated internal frame. */ public SubstanceInternalFrameTitlePane(JInternalFrame f) { super(f); this.setToolTipText(f.getTitle()); SubstanceLookAndFeel.setDecorationType(this,DecorationAreaType.SECONDARY_TITLE_PANE); }
didYouKnow.setTitle(UIManagerExt.getString( "TipOfTheDay.didYouKnowText", tipPane.getLocale())); SubstanceLookAndFeel.setDecorationType(didYouKnow, DecorationAreaType.GENERAL);
origIcon); SubstanceLookAndFeel.setDecorationType(this.loginPanel, DecorationAreaType.HEADER); BackgroundPaintingUtils.update(graphics, this.loginPanel, true);
SubstanceLookAndFeel.setDecorationType(this.label, DecorationAreaType.GENERAL);
@Override public void installUI(JComponent c) { super.installUI(c); SubstanceLookAndFeel.setDecorationType(this.titleBar, DecorationAreaType.GENERAL); Color backgr = this.titleBar.getBackground(); if (backgr == null || backgr instanceof UIResource) { Color toSet = SubstanceColorSchemeUtilities.getColorScheme(this.titleBar, ComponentState.ENABLED).getBackgroundFillColor(); this.titleBar.setBackground(new ColorUIResource(toSet)); } SubstanceSkin skin = SubstanceCoreUtilities.getSkin(this.titleBar); SubstanceColorScheme bgColorScheme = skin.getBackgroundColorScheme(DecorationAreaType.HEADER); Color bgFillColor = bgColorScheme.getBackgroundFillColor(); Color fgColor = bgColorScheme.getForegroundColor(); fgColor = SubstanceColorUtilities.getInterpolatedColor(fgColor, bgFillColor, 0.2f); titleBar.getTitleLabel().setForeground(fgColor); }
/** * Creates a new title pane. * * @param root * Root pane. * @param ui * Root pane UI. */ public SubstanceTitlePane(JRootPane root, SubstanceRootPaneUI ui) { this.rootPane = root; this.rootPaneUI = ui; this.state = -1; this.installSubcomponents(); this.installDefaults(); this.setLayout(this.createLayout()); this.setToolTipText(this.getTitle()); SubstanceLookAndFeel.setDecorationType(this, DecorationAreaType.PRIMARY_TITLE_PANE); this.setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceCoreUtilities.getSkin(this) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE))); // SubstanceColorSchemeUtilities // .getColorScheme(this, ComponentState.ACTIVE))); }
/** * Creates a new title pane. * * @param root * Root pane. * @param ui * Root pane UI. */ public SubstanceTitlePane(JRootPane root, SubstanceRootPaneUI ui) { this.rootPane = root; this.rootPaneUI = ui; this.state = -1; this.installSubcomponents(); this.installDefaults(); this.setLayout(this.createLayout()); this.setToolTipText(this.getTitle()); SubstanceLookAndFeel.setDecorationType(this, DecorationAreaType.PRIMARY_TITLE_PANE); this.setForeground(SubstanceColorUtilities .getForegroundColor(SubstanceCoreUtilities.getSkin(this) .getBackgroundColorScheme( DecorationAreaType.PRIMARY_TITLE_PANE))); // SubstanceColorSchemeUtilities // .getColorScheme(this, ComponentState.ACTIVE))); }