jcal7143ca3
UI changes
+8 −3
1 file changed
- M src/GFrame.java +8 −3
| @@ -46,10 +46,11 @@ public class GFrame extends JFrame { | |||
| 46 | 46 | // b.setBackground(Color.decode("#F78361")); | |
| 47 | 47 | b.setBackground(Color.decode("#2B2B2B")); | |
| 48 | 48 | b.setForeground(Color.decode("#e5e5e5")); | |
| 49 | − | b.setFont((new Font("Times New Roman", Font.PLAIN, 20))); | |
| 49 | + | b.setFont((new Font("Times New Roman", 1, 20))); | |
| 50 | 50 | b.setBounds(d1, d2, d3, d4); | |
| 51 | 51 | b.setBorder(new RoundBtn(15)); | |
| 52 | 52 | b.setText(text); | |
| 53 | + | b.setBorderPainted(false); | |
| 53 | 54 | return b; | |
| 54 | 55 | } | |
| 55 | 56 | ||
| @@ -85,13 +86,17 @@ public class GFrame extends JFrame { | |||
| 85 | 86 | lHist.setForeground(Color.decode("#e5e5e5")); | |
| 86 | 87 | lHist.setBounds(380, 50, 200, 240); | |
| 87 | 88 | lHist.setFont(new Font("Times New Roman", Font.PLAIN, 20)); | |
| 88 | − | lHist.setBorder(new RoundBtn(5)); | |
| 89 | + | lHist.setSelectionBackground(Color.decode("#FEA00B")); | |
| 90 | + | lHist.setSelectionForeground(Color.decode("#111111")); | |
| 91 | + | // lHist.setBorder(new RoundBtn(0)); | |
| 89 | 92 | this.add(lHist); | |
| 90 | 93 | ||
| 91 | 94 | // Buttons | |
| 92 | 95 | JButton bEval = newButton("=", 290, 50, 60, 40); | |
| 93 | 96 | JButton bExp = newButton("^", 250, 100, 100, 40); | |
| 94 | − | JButton bClear = newButton("CL", 180, 100, 60, 40); | |
| 97 | + | JButton bClear = newButton("AC", 180, 100, 60, 40); | |
| 98 | + | bClear.setBackground(Color.decode("#FEA00B")); | |
| 99 | + | bClear.setForeground(Color.decode("#111111")); | |
| 95 | 100 | JButton bClearHistory = newButton("Clear History", 380, 300, 200, 40); | |
| 96 | 101 | JButton bAdd = newButton("+", 250, 300, 100, 40); | |
| 97 | 102 | JButton bSub = newButton("-", 250, 250, 100, 40); | |