Browse Source

Update README.md

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

13
README.md

@ -42,10 +42,12 @@ implementation("com.github.weisj:darklaf-theme:[2.0.3,)") // For the themes
```` ````
## 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) LafManager.install(); // For default theme (IntelliJ)
// or ````
or
````java
LafManager.install(new DarculaTheme()); // Specify the used theme. LafManager.install(new DarculaTheme()); // Specify the used theme.
```` ````
or by using the UIManager or by using the UIManager
@ -54,6 +56,8 @@ LafManager.setTheme(new DarculaTheme());
UIManager.setLookAndFeel(DarkLaf.class.getCanonicalName()); UIManager.setLookAndFeel(DarkLaf.class.getCanonicalName());
```` ````
**Note**: The recommended method is using the `LafManager` as it automatically handles reloading the ui.
## Example ## Example
````java ````java
import com.github.weisj.darklaf.LafManager; import com.github.weisj.darklaf.LafManager;
@ -129,7 +133,12 @@ Here is a list of things that currently are not finished or need refinement. Thi
- `darklaf-windows` Code specific to Windows. - `darklaf-windows` Code specific to Windows.
- `darklaf-macos` Code specific to macOS. - `darklaf-macos` Code specific to macOS.
# Projects using Darklaf
- [JMeter](https://github.com/apache/jmeter)
- [Litiengine](https://github.com/gurkenlabs/litiengine)
- [BoofVC](https://github.com/lessthanoptimal/BoofCV)
- [threadtear](https://github.com/GraxCode/threadtear)
# License # License
This project is licensed under the [MIT license](https://github.com/weisJ/darklaf/blob/master/LICENSE). This project is licensed under the [MIT license](https://github.com/weisJ/darklaf/blob/master/LICENSE).

Loading…
Cancel
Save