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
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

Loading…
Cancel
Save