public static Color getTextBackgroundFillColor(JComponent comp) { Color backgroundFillColor = SubstanceColorUtilities .getBackgroundFillColor(comp); JTextComponent componentForTransitions = SubstanceCoreUtilities .getTextComponentForTransitions(comp); if (componentForTransitions != null) { ComponentUI ui = componentForTransitions.getUI(); if (ui instanceof TransitionAwareUI) { TransitionAwareUI trackable = (TransitionAwareUI) ui; StateTransitionTracker stateTransitionTracker = trackable .getTransitionTracker(); Color outerTextComponentBorderColor = SubstanceColorUtilities .getOuterTextComponentBorderColor(backgroundFillColor); outerTextComponentBorderColor = SubstanceColorUtilities .getInterpolatedColor(outerTextComponentBorderColor, backgroundFillColor, 0.6); float selectionStrength = stateTransitionTracker .getFacetStrength(ComponentStateFacet.SELECTION); float rolloverStrength = stateTransitionTracker .getFacetStrength(ComponentStateFacet.ROLLOVER); backgroundFillColor = SubstanceColorUtilities .getInterpolatedColor(outerTextComponentBorderColor, backgroundFillColor, Math.max( selectionStrength, rolloverStrength)); } } return backgroundFillColor; }
public static Color getTextBackgroundFillColor(JComponent comp) { Color backgroundFillColor = SubstanceColorUtilities .getBackgroundFillColor(comp); JTextComponent componentForTransitions = SubstanceCoreUtilities .getTextComponentForTransitions(comp); if (componentForTransitions != null) { ComponentUI ui = componentForTransitions.getUI(); if (ui instanceof TransitionAwareUI) { TransitionAwareUI trackable = (TransitionAwareUI) ui; StateTransitionTracker stateTransitionTracker = trackable .getTransitionTracker(); Color outerTextComponentBorderColor = SubstanceColorUtilities .getOuterTextComponentBorderColor(backgroundFillColor); outerTextComponentBorderColor = SubstanceColorUtilities .getInterpolatedColor(outerTextComponentBorderColor, backgroundFillColor, 0.6); float selectionStrength = stateTransitionTracker .getFacetStrength(ComponentStateFacet.SELECTION); float rolloverStrength = stateTransitionTracker .getFacetStrength(ComponentStateFacet.ROLLOVER); backgroundFillColor = SubstanceColorUtilities .getInterpolatedColor(outerTextComponentBorderColor, backgroundFillColor, Math.max( selectionStrength, rolloverStrength)); } } return backgroundFillColor; }
if (modelStateInfo != null) { finalAlpha += 0.5f * tabTracker .getFacetStrength(ComponentStateFacet.ROLLOVER); } else { ComponentState tabState = getTabState(tabIndex); if (tabTracker != null) { alpha = tabTracker .getFacetStrength(ComponentStateFacet.ROLLOVER);
if (modelStateInfo != null) { finalAlpha += 0.5f * tabTracker .getFacetStrength(ComponentStateFacet.ROLLOVER); if (tabTracker.getFacetStrength(ComponentStateFacet.SELECTION) == 1.0f) { finalAlpha = 1.0f; if (tabTracker != null) { alpha = tabTracker .getFacetStrength(ComponentStateFacet.ROLLOVER);
this.tabPane, 1.0f - tabTracker .getFacetStrength(ComponentStateFacet.ROLLOVER), g2d)); super.paintIcon(g2d, tabPlacement, tabIndex, themed, iconRect,
this.tabPane, 1.0f - tabTracker .getFacetStrength(ComponentStateFacet.ROLLOVER), g2d)); super.paintIcon(g2d, tabPlacement, tabIndex, themed, iconRect,
currState); float visibility = stateTransitionTracker .getFacetStrength(ComponentStateFacet.SELECTION);
ColorSchemeAssociationKind.BORDER, currState); float visibility = stateTransitionTracker .getFacetStrength(ComponentStateFacet.SELECTION);
currState); float visibility = stateTransitionTracker .getFacetStrength(ComponentStateFacet.SELECTION); boolean isCheckMarkFadingOut = !currState .isFacetActive(ComponentStateFacet.SELECTION);
currState); float visibility = stateTransitionTracker .getFacetStrength(ComponentStateFacet.SELECTION);
.max( stateTransitionTracker .getFacetStrength(ComponentStateFacet.ROLLOVER), stateTransitionTracker .getFacetStrength(ComponentStateFacet.ARM)); if (rolloverAmount > 0) { themed.paintIcon(menuItem, g2d, mli.iconRect.x,
currState); float visibility = stateTransitionTracker .getFacetStrength(ComponentStateFacet.SELECTION); boolean isCheckMarkFadingOut = !currState .isFacetActive(ComponentStateFacet.SELECTION);
ColorSchemeAssociationKind.BORDER, currState); float visibility = stateTransitionTracker .getFacetStrength(ComponentStateFacet.SELECTION); boolean isCheckMarkFadingOut = !currState .isFacetActive(ComponentStateFacet.SELECTION);
.max( stateTransitionTracker .getFacetStrength(ComponentStateFacet.ROLLOVER), stateTransitionTracker .getFacetStrength(ComponentStateFacet.ARM)); if (rolloverAmount > 0) { themed.paintIcon(menuItem, g2d, mli.iconRect.x,
ColorSchemeAssociationKind.BORDER, currState); float visibility = stateTransitionTracker .getFacetStrength(ComponentStateFacet.SELECTION);
ColorSchemeAssociationKind.BORDER, currState); float visibility = stateTransitionTracker .getFacetStrength(ComponentStateFacet.SELECTION); boolean isCheckMarkFadingOut = !currState .isFacetActive(ComponentStateFacet.SELECTION);