src/main/java/com/spinyowl/legui/component/ToggleButton.java
private void initialize() {
    getStyle().getBackground().setColor(ColorConstants.red());
    toggledBackgroundColor = ColorConstants.green();
    MouseClickEventListener toggleButtonClickListener = new ToggleButtonMouseClickListener();
    getListenerMap().addListener(MouseClickEvent.class, toggleButtonClickListener);

    Themes.getDefaultTheme().getThemeManager().getComponentTheme(ToggleButton.class).applyAll(this);
  }
/**
   * Initialize toggle button with default states.
   */
Initialize toggle button with default states.
Initialize toggle button with default states .
private void initialize() {
    getStyle().getBackground().setColor(ColorConstants.red());
    toggledBackgroundColor = ColorConstants.green();
    MouseClickEventListener toggleButtonClickListener = new ToggleButtonMouseClickListener();
    getListenerMap().addListener(MouseClickEvent.class, toggleButtonClickListener);
    Themes.getDefaultTheme().getThemeManager().getComponentTheme(ToggleButton.class).applyAll(this);
  }
private void initialize ( ) { getStyle ( ) . getBackground ( ) . setColor ( ColorConstants . red ( ) ) ; toggledBackgroundColor = ColorConstants . green ( ) ; MouseClickEventListener toggleButtonClickListener = new ToggleButtonMouseClickListener ( ) ; getListenerMap ( ) . addListener ( MouseClickEvent . class , toggleButtonClickListener ) ; Themes . getDefaultTheme ( ) . getThemeManager ( ) . getComponentTheme ( ToggleButton . class ) . applyAll ( this ) ; }
Initialize toggle button with default states.
Initialize toggle button with default states .