Change menu item colors
This commit is contained in:
parent
b3e5da77ee
commit
2155e78962
@ -28,7 +28,7 @@ public class Main extends JFrame {
|
|||||||
setLocationByPlatform(true);
|
setLocationByPlatform(true);
|
||||||
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
||||||
|
|
||||||
add(new JLayer<>(new MenuPanel(), new LayerUI.GradientBackground()));
|
add(new JLayer<>(new MenuPanel(), new LayerUI.PlanetBackground()));
|
||||||
pack();
|
pack();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ public class MenuPanel extends JPanel {
|
|||||||
menuList = new JList<>(MENU_ITEMS);
|
menuList = new JList<>(MENU_ITEMS);
|
||||||
menuList.setOpaque(false);
|
menuList.setOpaque(false);
|
||||||
menuList.setFont(new Font("Stencil", Font.BOLD, 42));
|
menuList.setFont(new Font("Stencil", Font.BOLD, 42));
|
||||||
|
menuList.setForeground(Color.GRAY);
|
||||||
menuList.setBackground(Color.BLACK);
|
menuList.setBackground(Color.BLACK);
|
||||||
menuList.setSelectionBackground(Color.BLACK);
|
menuList.setSelectionBackground(Color.BLACK);
|
||||||
menuList.setSelectionForeground(TITLE_COLOR);
|
menuList.setSelectionForeground(TITLE_COLOR);
|
||||||
|
Loading…
Reference in New Issue
Block a user