I have the follow code:
.progress-bar > .bar {
-fx-background-color: linear-gradient(
from 0em 0.75em to 0.75em 0px,
repeat,
-fx-accent 0%,
-fx-accent 49%,
derive(-fx-accent, 30%) 50%,
derive(-fx-accent, 30%) 99%
);}
Is it possible to set it by code? If yes, how to do that?
I want to set by code because I want to solve another problem, click here
One guy told me to use lookup get selector, but it return null.
the following code is what I did? Could you tell me what's wrong?
Node bar = progress.lookup(".bar");
any help would be appreciated.