dlsc-software-consulting-gmbh / GemsFX

A collection of JavaFX controls and utilities.
Apache License 2.0
436 stars 51 forks source link

Replace Closely Associated View Properties with StyleableProperty #145

Closed leewyatt closed 2 weeks ago

leewyatt commented 1 month ago

We propose replacing properties that are closely tied to views with StyleableProperty to boost UI customization and flexibility. This adjustment will enable dynamic styling through CSS, offering more versatile design options for our UI components. e.g.

   // TODO: make styleable
    private final DoubleProperty fadingSize = new SimpleDoubleProperty(this, "fadingSize", 120);

    private final ObjectProperty<Theme> theme = new SimpleObjectProperty<>(this, "style", Theme.DARK);

    private final ObjectProperty<Orientation> orientation = new SimpleObjectProperty<>(this, "orientation", Orientation.HORIZONTAL);

    private final BooleanProperty showWeekNumbers = new SimpleBooleanProperty(this, "showWeekNumbers");