Krolyxon
Commit 7143ca3

Branches

Refs →

jcal7143ca3

UI changes

Author
krolxon
Date
2024-03-01 18:44 +0530
Parent
38801f2
Commit
7143ca3625798da26f94c130f0f1a3d950da1617

+8 −3

1 file changed

  1. M src/GFrame.java +8 −3
M src/GFrame.java View
@@ -46,10 +46,11 @@ public class GFrame extends JFrame {
4646 // b.setBackground(Color.decode("#F78361"));
4747 b.setBackground(Color.decode("#2B2B2B"));
4848 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)));
5050 b.setBounds(d1, d2, d3, d4);
5151 b.setBorder(new RoundBtn(15));
5252 b.setText(text);
53+ b.setBorderPainted(false);
5354 return b;
5455 }
5556
@@ -85,13 +86,17 @@ public class GFrame extends JFrame {
8586 lHist.setForeground(Color.decode("#e5e5e5"));
8687 lHist.setBounds(380, 50, 200, 240);
8788 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));
8992 this.add(lHist);
9093
9194 // Buttons
9295 JButton bEval = newButton("=", 290, 50, 60, 40);
9396 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"));
95100 JButton bClearHistory = newButton("Clear History", 380, 300, 200, 40);
96101 JButton bAdd = newButton("+", 250, 300, 100, 40);
97102 JButton bSub = newButton("-", 250, 250, 100, 40);