Hi,
Did the way <?scenebuilder-stylesheet some-style.css?> works get changed in Scene Builder 2? When I use Preview -- Scene Style Sheets -- Add a Style Sheet, I can't figure out where Scene Builder 2 is storing the info for the previewed style sheet. When I commit the FXML file and check it out on another machine, all that information is lost.
What's the recommended way to deal with CSS for for files that are going to be included in other files using fx:include? For example, assume I have 2 FXML files:
1) Main.fxml - A StackPane that includes Sub.fxml via fx:include. Specifies main.css as a style sheet.
2) Sub.fxml - Uses styles from main.css, but no style sheet is attached directly.
It doesn't seem right to add main.css to both files. If I remember correctly, Scene Builder 1 would use <?scenebuilder-stylesheet some-style.css?> to make this work, but it seems to be ignored in Scene Builder 2. Can anyone suggest another way of doing what I want?