atlantafx/docs/index.md

31 lines
870 B
Markdown
Raw Normal View History

2022-09-08 02:50:41 -04:00
---
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: home
2022-09-09 06:32:29 -04:00
title: Home
nav_order: 1
2022-09-08 02:50:41 -04:00
---
2022-09-09 06:32:29 -04:00
## Getting started
Add project to the dependencies:
```xml
<dependency>
<groupId>io.github.mkpaz</groupId>
<artifactId>atlantafx-base</artifactId>
<version>1.0.0</version>
</dependency>
```
If you don't want to include additional dependencies into your project classpath, you can download compiled CSS themes from the [GitHub Releases](https://github.com/mkpaz/atlantafx/releases).
Set CSS theme:
```java
// find more themes in 'atlantafx.base.theme' package
Application.setUserAgentStylesheet(new PrimerLight().getUserAgentStylesheet());
Application.setUserAgentStylesheet(new PrimerDark().getUserAgentStylesheet());
// or
Application.setUserAgentStylesheet(/* path to the CSS file in your project classpath */);
```