aboutsummaryrefslogtreecommitdiff
path: root/src/Main.java
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-11-21 23:20:20 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-11-21 23:20:20 +0530
commitc82c062ed61879a1f8e32d5ec53eb02b1e0fb628 (patch)
tree8ad9c51a86c874a9a4476fadfb543fb7c38d7cc8 /src/Main.java
parented3e023d1da3465bc79a91d38950a167004911b2 (diff)
Using Solarized Look & Feel
Diffstat (limited to 'src/Main.java')
-rw-r--r--src/Main.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/Main.java b/src/Main.java
index c02430a..3ee4764 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -1,18 +1,15 @@
import UI.MainWindow;
+import com.github.weisj.darklaf.LafManager;
+import com.github.weisj.darklaf.theme.SolarizedLightTheme;
-import javax.swing.*;
import java.awt.*;
public class Main {
public static void main(String[] args) {
- try {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- }
- catch (UnsupportedLookAndFeelException | ClassNotFoundException | InstantiationException |
- IllegalAccessException _) {
- }
-
EventQueue.invokeLater(() -> {
+ LafManager.setTheme(new SolarizedLightTheme());
+ LafManager.install();
+
MainWindow w = new UI.MainWindow();
w.setVisible(true);
});