Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CheckBox text is not aligned with other text #115

Open
PavelTurk opened this issue Dec 23, 2024 · 0 comments
Open

CheckBox text is not aligned with other text #115

PavelTurk opened this issue Dec 23, 2024 · 0 comments

Comments

@PavelTurk
Copy link

This is the code:

public class NewMain extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) {
        Application.setUserAgentStylesheet(new Dracula().getUserAgentStylesheet());
        var checkBox = new CheckBox("aaaaaaaaa");
        var label = new Label("bbbbbbbbbbbb");
        var toolBar = new ToolBar(checkBox, label);
        toolBar.setMinHeight(40);
        var root = new VBox(toolBar);

        var scene = new Scene(root, 400, 200);
        primaryStage.setScene(scene);
        primaryStage.show();
    }
}

This is how it looks in dracula:

Screenshot from 2024-12-23 20-36-26

This is how it looks in modena:

Screenshot from 2024-12-23 20-36-11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant