diff --git a/README.md b/README.md index be2a7eae..e3dd8d16 100644 --- a/README.md +++ b/README.md @@ -54,18 +54,19 @@ dependencies { ## Installation The LookAndFeel can be easily installed using the `LafManager` ````java -LafManager.install(); // For default theme (IntelliJ) -```` -or -````java -LafManager.install(new DarculaTheme()); // Specify the used theme. -```` -or by using the UIManager -````java -LafManager.setTheme(new DarculaTheme()); -UIManager.setLookAndFeel(DarkLaf.class.getCanonicalName()); +// For default theme (IntelliJ) +LafManager.install(); + +// Specify explicit theme. +LafManager.setTheme(new IntelliJTheme()); +LafManager.install(); + +// Directly install theme +LafManager.install(new DarculaTheme()); ```` +For more information see the [wiki](https://github.com/weisJ/darklaf/wiki/LafManager#setting-the-theme). + **Note**: The recommended method is using the `LafManager` as it automatically handles reloading the ui. ### Choosing a theme