You can do
.root {
-fx-background-color: linear-gradient(from 0px 0px to 1900px 0px, white 0%, white 36.84%, black 36.84%, black 100%);
}
(Note 700/1900 = 36.84%).
Here's an simple test example, with the code above in two-tone-background.css:
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
public class TwoToneBackground extends Application {
@Override
public void start(Stage primaryStage) {
Scene scene = new Scene(new Pane(), 1900, 1200);
scene.getStylesheets().add("two-tone-background.css");
scene.getRoot().applyCss();
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
This results in:
