Browse Source

Removed non favourable installation methods.

pull/188/head
Jannis Weis 5 years ago committed by GitHub
parent
commit
7dd84ba642
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      README.md

21
README.md

@ -54,18 +54,19 @@ dependencies {
## Installation ## Installation
The LookAndFeel can be easily installed using the `LafManager` The LookAndFeel can be easily installed using the `LafManager`
````java ````java
LafManager.install(); // For default theme (IntelliJ) // For default theme (IntelliJ)
```` LafManager.install();
or
````java // Specify explicit theme.
LafManager.install(new DarculaTheme()); // Specify the used theme. LafManager.setTheme(new IntelliJTheme());
```` LafManager.install();
or by using the UIManager
````java // Directly install theme
LafManager.setTheme(new DarculaTheme()); LafManager.install(new DarculaTheme());
UIManager.setLookAndFeel(DarkLaf.class.getCanonicalName());
```` ````
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. **Note**: The recommended method is using the `LafManager` as it automatically handles reloading the ui.
### Choosing a theme ### Choosing a theme

Loading…
Cancel
Save