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

    Button expandButton = component.getExpandButton();
    expandButton.getStyle().setShadow(null);
    expandButton.getStyle().getBackground().setColor(ColorConstants.transparent());

    Button selectionButton = component.getSelectionButton();
    selectionButton.getStyle().setShadow(null);
    selectionButton.getStyle().getBackground().setColor(ColorConstants.transparent());

    Icon collapseIcon = component.getCollapseIcon();
    if (collapseIcon instanceof CharIcon) {
      CharIcon bgIcon = (CharIcon) collapseIcon;
      bgIcon.setColor(ColorUtil.oppositeBlackOrWhite(settings.backgroundColor()));
      bgIcon.setHorizontalAlign(HorizontalAlign.CENTER);
      bgIcon.setVerticalAlign(VerticalAlign.MIDDLE);
    }
    Icon expandIcon = component.getExpandIcon();
    if (expandIcon instanceof CharIcon) {
      CharIcon bgIcon = (CharIcon) expandIcon;
      bgIcon.setColor(ColorUtil.oppositeBlackOrWhite(settings.backgroundColor()));
      bgIcon.setHorizontalAlign(HorizontalAlign.CENTER);
      bgIcon.setVerticalAlign(VerticalAlign.MIDDLE);
    }
  }
/**
   * 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);
    Button expandButton = component.getExpandButton();
    expandButton.getStyle().setShadow(null);
    expandButton.getStyle().getBackground().setColor(ColorConstants.transparent());
    Button selectionButton = component.getSelectionButton();
    selectionButton.getStyle().setShadow(null);
    selectionButton.getStyle().getBackground().setColor(ColorConstants.transparent());
    Icon collapseIcon = component.getCollapseIcon();
    if (collapseIcon instanceof CharIcon) {
      CharIcon bgIcon = (CharIcon) collapseIcon;
      bgIcon.setColor(ColorUtil.oppositeBlackOrWhite(settings.backgroundColor()));
      bgIcon.setHorizontalAlign(HorizontalAlign.CENTER);
      bgIcon.setVerticalAlign(VerticalAlign.MIDDLE);
    }
    Icon expandIcon = component.getExpandIcon();
    if (expandIcon instanceof CharIcon) {
      CharIcon bgIcon = (CharIcon) expandIcon;
      bgIcon.setColor(ColorUtil.oppositeBlackOrWhite(settings.backgroundColor()));
      bgIcon.setHorizontalAlign(HorizontalAlign.CENTER);
      bgIcon.setVerticalAlign(VerticalAlign.MIDDLE);
    }
  }
@ Override public void apply ( T component ) { super . apply ( component ) ; Button expandButton = component . getExpandButton ( ) ; expandButton . getStyle ( ) . setShadow ( null ) ; expandButton . getStyle ( ) . getBackground ( ) . setColor ( ColorConstants . transparent ( ) ) ; Button selectionButton = component . getSelectionButton ( ) ; selectionButton . getStyle ( ) . setShadow ( null ) ; selectionButton . getStyle ( ) . getBackground ( ) . setColor ( ColorConstants . transparent ( ) ) ; Icon collapseIcon = component . getCollapseIcon ( ) ; if ( collapseIcon instanceof CharIcon ) { CharIcon bgIcon = ( CharIcon ) collapseIcon ; bgIcon . setColor ( ColorUtil . oppositeBlackOrWhite ( settings . backgroundColor ( ) ) ) ; bgIcon . setHorizontalAlign ( HorizontalAlign . CENTER ) ; bgIcon . setVerticalAlign ( VerticalAlign . MIDDLE ) ; } Icon expandIcon = component . getExpandIcon ( ) ; if ( expandIcon instanceof CharIcon ) { CharIcon bgIcon = ( CharIcon ) expandIcon ; bgIcon . setColor ( ColorUtil . oppositeBlackOrWhite ( settings . backgroundColor ( ) ) ) ; bgIcon . setHorizontalAlign ( HorizontalAlign . CENTER ) ; bgIcon . setVerticalAlign ( VerticalAlign . MIDDLE ) ; } }
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 .