atlantafx/docs/index.md
2022-09-11 15:31:29 +04:00

870 B

layout title nav_order
home Home 1

Getting started

Add project to the dependencies:

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

Set CSS theme:

// 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 */);