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;
}
Aggregations