aboutsummaryrefslogtreecommitdiff
path: root/src/Main.java
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-11-21 23:19:24 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-11-21 23:19:24 +0530
commit279415dfe3386e624727d204b304430299d4a6cf (patch)
tree16b7fff09021a1c8a0bfc26bfd6d9d5e0291aad1 /src/Main.java
parentda6b366397aa15e2686840c1d9ffa5dae5d49d2a (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 e3a030a..5fd5a20 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -1,21 +1,18 @@
import Store.ConnectionHandler;
import UI.MainWindow;
+import com.github.weisj.darklaf.LafManager;
+import com.github.weisj.darklaf.theme.;
-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 _) {
- }
-
new ConnectionHandler("jdbc:sqlite:LibMan.db").connect();
EventQueue.invokeLater(() -> {
+ LafManager.setTheme(new SolarizedLightTheme());
+ LafManager.install();
+
MainWindow w = new UI.MainWindow();
w.setVisible(true);
});