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