From c82c062ed61879a1f8e32d5ec53eb02b1e0fb628 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 21 Nov 2024 23:20:20 +0530 Subject: Using Solarized Look & Feel --- .idea/libraries/github_weisj_darklaf_core.xml | 10 ++++++++++ .idea/libraries/github_weisj_darklaf_core1.xml | 21 +++++++++++++++++++++ LibManClient.iml | 2 ++ README.md | 3 ++- src/Main.java | 13 +++++-------- 5 files changed, 40 insertions(+), 9 deletions(-) create mode 100644 .idea/libraries/github_weisj_darklaf_core.xml create mode 100644 .idea/libraries/github_weisj_darklaf_core1.xml diff --git a/.idea/libraries/github_weisj_darklaf_core.xml b/.idea/libraries/github_weisj_darklaf_core.xml new file mode 100644 index 0000000..77b4313 --- /dev/null +++ b/.idea/libraries/github_weisj_darklaf_core.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/libraries/github_weisj_darklaf_core1.xml b/.idea/libraries/github_weisj_darklaf_core1.xml new file mode 100644 index 0000000..f027391 --- /dev/null +++ b/.idea/libraries/github_weisj_darklaf_core1.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/LibManClient.iml b/LibManClient.iml index 8e8e467..2fc64d0 100644 --- a/LibManClient.iml +++ b/LibManClient.iml @@ -8,5 +8,7 @@ + + \ No newline at end of file diff --git a/README.md b/README.md index 5a2c78b..12c8e11 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ See Also: [LibMan](/LibMan/about) ## What it is -This thing is the client side app with a Swing GUI for my LibMan project. +This thing is the client side app with a Swing GUI for my LibMan project. You can connect to any LibMan instance through Socket.IO and sign up/log in to look at and issue/return the available books. @@ -15,6 +15,7 @@ It's a pretty basic project but since I hate Java with a passion it was very har to write so I'm releasing is as GPL. Don't cheat on your homework, folks # License + Licenced under GNU General Public Licence GNU GPL License: [LICENSE](LICENSE) 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); }); -- cgit v1.2.3