I have light and dark themes.
If a theme is light then I need:
<code>-fx-background-color: derive(-bg-color, -10%);
</code>
<code>-fx-background-color: derive(-bg-color, -10%);
</code>
-fx-background-color: derive(-bg-color, -10%);
If a theme is dark then I need
<code>-fx-background-color: derive(-bg-color, +10%);
</code>
<code>-fx-background-color: derive(-bg-color, +10%);
</code>
-fx-background-color: derive(-bg-color, +10%);
If it is possible I wouldn’t like to create extra classes/stylesheets for different themes depending if theme is light or dark and manually add/remove them.
Could anyone say if there is a solution in JavaFX CSS for such problem.