B4J Question How do I translate a RootPane inline style into a CSS file

Cableguy

Expert
Licensed User
Longtime User
hi, I have this code line that works:

MainForm.RootPane.Style = "-fx-background-color:#e8f5fc;"

but since I am styling several nodes, I wanted to pass this code line to a CSS file, where I already have some styles, but I can't get it right;

I have tried:

.root

.rootpane

.root .pane

Nothing seems to do the trick!

Please Help!
 

Daestrum

Expert
Licensed User
Longtime User
Very curious, but glad it's now working for you.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Why don't you use the designer to set the background color?
Because, given the ability to customize through stylesheets, it will be easier to change styles in the css file than to open the designer... and also its a good learning process.
 
Upvote 0
Top