Added more themes
This commit is contained in:
parent
09f8469af2
commit
4699e26afc
|
@ -102,8 +102,8 @@ public class Chess {
|
|||
|
||||
JMenu menuTheme = new JMenu("Theme");
|
||||
|
||||
Theme[] themes = new Theme[]{Theme.CLASSIC, Theme.GREEN};
|
||||
String[] themeNames = new String[]{"Classic", "Green"};
|
||||
Theme[] themes = new Theme[]{Theme.CLASSIC, Theme.GREEN, Theme.YELLOW, Theme.RED};
|
||||
String[] themeNames = new String[]{"Classic", "Green", "Yellow", "Red"};
|
||||
JRadioButtonMenuItem[] items = new JRadioButtonMenuItem[themes.length];
|
||||
|
||||
Runnable deselectRadios = () -> {
|
||||
|
|
|
@ -8,6 +8,14 @@ public enum Theme {
|
|||
GREEN(
|
||||
Color.decode("#f9f9f9"), Color.decode("#333333"), Color.decode("#686563"), Color.decode("#000000"),
|
||||
Color.decode("#ebecd0"), Color.decode("#779556")
|
||||
),
|
||||
YELLOW(
|
||||
Color.decode("#e1d1b8"), Color.decode("#4f2d20"), Color.decode("#4f2d20"), Color.decode("#ffffff"),
|
||||
Color.decode("#feefe0"), Color.decode("#e7ba83")
|
||||
),
|
||||
RED(
|
||||
Color.decode("#ffffff"), Color.decode("#520D0D"), Color.decode("#520D0D"), Color.decode("#ffffff"),
|
||||
Color.decode("#FF8A80"), Color.decode("#e2514c")
|
||||
);
|
||||
|
||||
public static Theme activeTheme = Theme.CLASSIC;
|
||||
|
|
Loading…
Reference in a new issue