src/main/java/com/spinyowl/legui/theme/colored/def/FlatTextInputTheme.java
@Override
  public void apply(T component) {
    super.apply(component);

    component.getFocusedStyle().getBackground()
        .setColor(settings.backgroundColor().mul(3)
            .add(ColorUtil.oppositeBlackOrWhite(settings.backgroundColor())).div(4));
    component.getStyle().setHighlightColor(settings.strokeColor());
    component.getStyle().getBackground().setColor(settings.backgroundColor());
  }
/**
   * 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.getFocusedStyle().getBackground()
        .setColor(settings.backgroundColor().mul(3)
            .add(ColorUtil.oppositeBlackOrWhite(settings.backgroundColor())).div(4));
    component.getStyle().setHighlightColor(settings.strokeColor());
    component.getStyle().getBackground().setColor(settings.backgroundColor());
  }
@ Override public void apply ( T component ) { super . apply ( component ) ; component . getFocusedStyle ( ) . getBackground ( ) . setColor ( settings . backgroundColor ( ) . mul ( 3 ) . add ( ColorUtil . oppositeBlackOrWhite ( settings . backgroundColor ( ) ) ) . div ( 4 ) ) ; component . getStyle ( ) . setHighlightColor ( settings . strokeColor ( ) ) ; component . getStyle ( ) . getBackground ( ) . setColor ( settings . backgroundColor ( ) ) ; }
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 .