atlantafx
atlantafx copied to clipboard
Editable ComboBox renders non default states incorrectly
This is code:
public class JavaFxTest7 extends Application {
@Override
public void start(Stage stage) {
Application.setUserAgentStylesheet(new Dracula().getUserAgentStylesheet());
var comboBox = new ComboBox<String>();
comboBox.setEditable(true);
comboBox.setItems(FXCollections.observableArrayList(List.of("first", "second")));
comboBox.pseudoClassStateChanged(Styles.STATE_DANGER, true);
Scene scene = new Scene(new VBox(comboBox), 400, 200);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch();
}
}
And this is result: