Skip to content

Commit 9253c50

Browse files
updating theme
1 parent 13ea86d commit 9253c50

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

CodeRail/AddMenuBar.java

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,37 @@ private void initUI(){
305305
menu_view.setForeground(Color.white);
306306
menu_font.setForeground(Color.white);
307307
menu_help.setForeground(Color.white);
308+
309+
//adding color to theme
310+
theme_a.setBackground(new Color(61, 61, 61));
311+
theme_a.setForeground(new Color(236, 240, 241));
312+
theme_b.setBackground(new Color(236, 240, 241));
313+
theme_b.setForeground(new Color(34, 47, 62));
314+
theme_c.setBackground(new Color(9, 132, 227));
315+
theme_c.setForeground(new Color(236, 240, 241));
316+
theme_d.setBackground(new Color(111, 30, 81));
317+
theme_d.setForeground(new Color(247, 241, 227));
318+
theme_e.setBackground(new Color(154, 236, 219));
319+
theme_e.setForeground(new Color(44, 58, 71));
320+
theme_f.setBackground(new Color(72, 84, 96));
321+
theme_f.setForeground(new Color(248, 239, 186));
322+
theme_g.setBackground(new Color(44, 58, 71));
323+
theme_g.setForeground(new Color(130, 88, 159));
324+
theme_h.setBackground(new Color(236, 240, 241));
325+
theme_h.setForeground(new Color(44, 62, 80));
326+
327+
//increase size of theme sub menu
328+
theme_a.setPreferredSize(new Dimension(100,30));
329+
theme_b.setPreferredSize(new Dimension(100,30));
330+
theme_c.setPreferredSize(new Dimension(100,30));
331+
theme_d.setPreferredSize(new Dimension(100,30));
332+
theme_e.setPreferredSize(new Dimension(100,30));
333+
theme_f.setPreferredSize(new Dimension(100,30));
334+
theme_g.setPreferredSize(new Dimension(100,30));
335+
theme_h.setPreferredSize(new Dimension(100,30));
336+
337+
338+
308339
}
309340

310341

0 commit comments

Comments
 (0)