palexdev / MaterialFX

A library of material components for JavaFX
GNU Lesser General Public License v3.0
1.22k stars 122 forks source link

MFXRectangleToggleNode ignores color options #106

Closed mat1911 closed 2 years ago

mat1911 commented 3 years ago

When I try to change "selected color" or "unselected color" for MFXRectangleToggleNode all my choices are ignored (no matter if I use scene builder or do it in code).

palexdev commented 3 years ago

Can you share a minimal reproducible example please?

mat1911 commented 3 years ago

The example is given below:

image

I am using Scene Builder 17.0.0. As you can see I have changed the "Selected Color" and "Unselected Color" properties but the toggle is still white/gray. I also tried to inject it into the controller by using @FXML annotation and then set its color with method setSelectedColor() but the result is always the same.

mat1911 commented 3 years ago

I would like to add that color change works in scene builder if I use styles like: -mfx-selected-color: #863c3c.

mouathche commented 3 years ago

Same, only default colors

palexdev commented 2 years ago

Latest released version improved CSS support for MaterialFX, as a consequence many stylesheets have been reviewed too Issue should be resolved