aboutsummaryrefslogtreecommitdiff
path: root/src/Main.java
diff options
context:
space:
mode:
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);
});