diff options
-rw-r--r-- | .idea/libraries/github_weisj_darklaf_core.xml | 21 | ||||
-rw-r--r-- | LibManAdmin.iml | 1 | ||||
-rw-r--r-- | src/Main.java | 13 |
3 files changed, 27 insertions, 8 deletions
diff --git a/.idea/libraries/github_weisj_darklaf_core.xml b/.idea/libraries/github_weisj_darklaf_core.xml new file mode 100644 index 0000000..f0e63bd --- /dev/null +++ b/.idea/libraries/github_weisj_darklaf_core.xml @@ -0,0 +1,21 @@ +<component name="libraryTable"> + <library name="github.weisj.darklaf.core" type="repository"> + <properties maven-id="com.github.weisj:darklaf-core:2.7.3" /> + <CLASSES> + <root url="jar://$PROJECT_DIR$/lib/darklaf-core-2.7.3.jar!/" /> + <root url="jar://$PROJECT_DIR$/lib/darklaf-theme-2.7.3.jar!/" /> + <root url="jar://$PROJECT_DIR$/lib/darklaf-property-loader-2.7.3.jar!/" /> + <root url="jar://$PROJECT_DIR$/lib/swing-extensions-visual-padding-0.1.3.jar!/" /> + <root url="jar://$PROJECT_DIR$/lib/annotations-16.0.2.jar!/" /> + <root url="jar://$PROJECT_DIR$/lib/darklaf-utils-2.7.3.jar!/" /> + <root url="jar://$PROJECT_DIR$/lib/darklaf-native-utils-2.7.3.jar!/" /> + <root url="jar://$PROJECT_DIR$/lib/darklaf-platform-base-2.7.3.jar!/" /> + <root url="jar://$PROJECT_DIR$/lib/darklaf-windows-2.7.3.jar!/" /> + <root url="jar://$PROJECT_DIR$/lib/darklaf-macos-2.7.3.jar!/" /> + <root url="jar://$PROJECT_DIR$/lib/swing-extensions-laf-support-0.1.3.jar!/" /> + <root url="jar://$PROJECT_DIR$/lib/svgSalamander-1.1.2.4.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> +</component>
\ No newline at end of file diff --git a/LibManAdmin.iml b/LibManAdmin.iml index 6547d93..90d626e 100644 --- a/LibManAdmin.iml +++ b/LibManAdmin.iml @@ -9,5 +9,6 @@ <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="xerial.sqlite.jdbc" level="project" /> <orderEntry type="library" name="corundumstudio.socketio.netty" level="project" /> + <orderEntry type="library" name="github.weisj.darklaf.core" level="project" /> </component> </module>
\ No newline at end of file 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); }); |