src/main/java/com/spinyowl/legui/theme/colored/def/FlatToggleButtonTheme.java
@Override
  public void apply(T component) {
    super.apply(component);
    component.getStyle().getBackground().setColor(settings.denyColor());

    component.getHoveredStyle().getBackground()
        .setColor(settings.denyColor().mul(1.3f, 1.3f, 1.3f, 1f));
    component.getPressedStyle().getBackground()
        .setColor(settings.denyColor().mul(1.6f, 1.6f, 1.6f, 1f));
    component.setToggledBackgroundColor(settings.allowColor());
  }
/**
   * Used to apply theme only for component and not apply for child components.
   *
   * @param component component to apply theme.
   */
Used to apply theme only for component and not apply for child components.
@param component component to apply theme.
Used to apply theme only for component and not apply for child components . @param component component to apply theme .
@Override
  public void apply(T component) {
    super.apply(component);
    component.getStyle().getBackground().setColor(settings.denyColor());
    component.getHoveredStyle().getBackground()
        .setColor(settings.denyColor().mul(1.3f, 1.3f, 1.3f, 1f));
    component.getPressedStyle().getBackground()
        .setColor(settings.denyColor().mul(1.6f, 1.6f, 1.6f, 1f));
    component.setToggledBackgroundColor(settings.allowColor());
  }
@ Override public void apply ( T component ) { super . apply ( component ) ; component . getStyle ( ) . getBackground ( ) . setColor ( settings . denyColor ( ) ) ; component . getHoveredStyle ( ) . getBackground ( ) . setColor ( settings . denyColor ( ) . mul ( 1.3f , 1.3f , 1.3f , 1f ) ) ; component . getPressedStyle ( ) . getBackground ( ) . setColor ( settings . denyColor ( ) . mul ( 1.6f , 1.6f , 1.6f , 1f ) ) ; component . setToggledBackgroundColor ( settings . allowColor ( ) ) ; }
Used to apply theme only for component and not apply for child components.
Used to apply theme only for component and not apply for child components .