Search in sources :

Example 1 with Theme

use of com.spinyowl.legui.theme.Theme in project legui by SpinyOwl.

the class ExampleGui method createSwitchThemeButton.

private Button createSwitchThemeButton() {
    final Theme[] current = { Themes.getDefaultTheme() };
    final Theme[] list = { Themes.FLAT_DARK, Themes.FLAT_PETERRIVER, Themes.FLAT_PETERRIVER_DARK, Themes.FLAT_WHITE };
    final int[] themeIndex = { 0 };
    String text = "Switch theme ";
    Button switchTheme = new Button(text, 600, 400, 120, 30);
    switchTheme.getListenerMap().addListener(MouseClickEvent.class, switchThemeClickListener(current, list, themeIndex, switchTheme));
    return switchTheme;
}
Also used : Button(com.spinyowl.legui.component.Button) RadioButton(com.spinyowl.legui.component.RadioButton) ToggleButton(com.spinyowl.legui.component.ToggleButton) Theme(com.spinyowl.legui.theme.Theme)

Aggregations

Button (com.spinyowl.legui.component.Button)1 RadioButton (com.spinyowl.legui.component.RadioButton)1 ToggleButton (com.spinyowl.legui.component.ToggleButton)1 Theme (com.spinyowl.legui.theme.Theme)1