Skip to content

Borders

Jannis Weis edited this page Feb 15, 2022 · 3 revisions

Borders

Darklaf provides a factory class for creating borders in the style of the rest of the UI.

There are two types of borders available. Both are a line border and differ only in their color:

  • Line border: This is the default border color for components.
  • Widget line border: Color used for some more high level components and separators.

Note that there is really no essential difference between the two border types with respect to purpose. The descriptions only convey a broad overview of where the borders are used, but even in Darklaf there are exceptions to these guidelines.

See DarkBorders.

Usage

comp1.setBorder(DarkBorders.createLineBorder(1,1,1,1));
comp2.setBorder(DarkBorders.createWidgetLineBorder(1,1,1,1));
Clone this wiki locally