src/main/java/com/spinyowl/legui/theme/colored/def/FlatPanelTheme.java
@Override
  public void apply(T component) {
    super.apply(component);
    Vector4f first = settings.backgroundColor();
    Vector4f second = ColorUtil.oppositeBlackOrWhite(settings.backgroundColor());
    Vector4f subtraction = new Vector4f(first).sub(second).mul(0.04F);
    first.sub(subtraction);

    component.getStyle().getBackground().setColor(first);
  }
/**
   * 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);
    Vector4f first = settings.backgroundColor();
    Vector4f second = ColorUtil.oppositeBlackOrWhite(settings.backgroundColor());
    Vector4f subtraction = new Vector4f(first).sub(second).mul(0.04F);
    first.sub(subtraction);
    component.getStyle().getBackground().setColor(first);
  }
@ Override public void apply ( T component ) { super . apply ( component ) ; Vector4f first = settings . backgroundColor ( ) ; Vector4f second = ColorUtil . oppositeBlackOrWhite ( settings . backgroundColor ( ) ) ; Vector4f subtraction = new Vector4f ( first ) . sub ( second ) . mul ( 0.04F ) ; first . sub ( subtraction ) ; component . getStyle ( ) . getBackground ( ) . setColor ( first ) ; }
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 .