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");
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.