org.pushingpixels.substance.api.painter.border.CompositeBorderPainter Java Examples
The following examples show how to use
org.pushingpixels.substance.api.painter.border.CompositeBorderPainter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CremeAccentedSkin.java From radiance with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * Creates a new accented <code>Creme</code> skin. */ protected CremeAccentedSkin(AccentBuilder accentBuilder) { super(accentBuilder); ColorSchemes kitchenSinkSchemes = SubstanceSkin.getColorSchemes( this.getClass().getClassLoader().getResourceAsStream( "org/pushingpixels/substance/api/skin/kitchen-sink.colorschemes")); SubstanceColorScheme enabledScheme = new CremeColorScheme(); SubstanceColorScheme disabledScheme = kitchenSinkSchemes.get("Creme Disabled"); SubstanceColorSchemeBundle defaultSchemeBundle = new SubstanceColorSchemeBundle( this.getActiveControlsAccent(), enabledScheme, disabledScheme); defaultSchemeBundle.registerHighlightColorScheme(this.getHighlightsAccent()); this.registerDecorationAreaSchemeBundle(defaultSchemeBundle, DecorationAreaType.NONE); this.registerAsDecorationArea(enabledScheme, DecorationAreaType.PRIMARY_TITLE_PANE, DecorationAreaType.SECONDARY_TITLE_PANE, DecorationAreaType.HEADER, DecorationAreaType.FOOTER, DecorationAreaType.GENERAL, DecorationAreaType.TOOLBAR); // Add overlay painters to paint drop shadows along the bottom edges of toolbars this.addOverlayPainter(BottomShadowOverlayPainter.getInstance(40), DecorationAreaType.TOOLBAR); // add an overlay painter to paint a dark line along the bottom edge of toolbars SubstanceOverlayPainter toolbarBottomLineOverlayPainter = new BottomLineOverlayPainter( SchemeBaseColors::getMidColor); this.addOverlayPainter(toolbarBottomLineOverlayPainter, DecorationAreaType.TOOLBAR); this.buttonShaper = new ClassicButtonShaper(); this.fillPainter = new MatteFillPainter(); this.decorationPainter = new ArcDecorationPainter(); this.highlightPainter = new ClassicHighlightPainter(); this.borderPainter = new CompositeBorderPainter("Creme", new ClassicBorderPainter(), new DelegateBorderPainter( "Creme Inner", new ClassicBorderPainter(), (SubstanceColorScheme scheme) -> scheme.tint(0.9f))); }