Skip to content

Wrong Spinner text color inside TabPane #227

@runiter

Description

@runiter

I came across a very specific scenario which causes Spinner text color to change into wrong color.

Here is the code to reproduce it:

public class Test extends Application {
	public void start(Stage stage) throws IOException {
		TabPane tabPane1 = new TabPane(new Tab("Tab1", new Spinner<>(0, 10, 5)));
		TabPane tabPane2 = new TabPane(new Tab("Tab1"), new Tab("Tab2"));
		VBox vbox = new VBox(tabPane1, tabPane2);
		Scene scene = new Scene(vbox);
		stage.setScene(scene);
		new JMetro(scene, Style.DARK);
		stage.show();
	}
}

If you run the above code, initially it shows correct color for spinner text (white):

image

But if you click on Tab2 then the color of spinner text changes from white to black:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions