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

CodeArea lacks colored focus indicator #202

Closed
hwaite opened this issue Nov 2, 2015 · 2 comments
Closed

CodeArea lacks colored focus indicator #202

hwaite opened this issue Nov 2, 2015 · 2 comments

Comments

@hwaite
Copy link

hwaite commented Nov 2, 2015

Unlike standard JavaFX controls, CodeArea fails to display highlighted border when focused.

public class Test extends Application {
    public static void main(String[] args) {launch(args);}

    public void start(Stage pStage) {
        pStage.setTitle("Test");

        final Pane root = new VBox();

        root.getChildren().addAll(
            new CodeArea(), new TextArea(), new TextField()
        );

        pStage.setScene(new Scene(root, 300, 250));
        pStage.show();
    }
}
@TomasMikula
Copy link
Member

Not sure we should have that highlighting by default. You can add highlighting by

.code-area:focused {
    -fx-border-color: -fx-focus-color;
    -fx-border-width: 2;
    -fx-border-radius: 3;
}

You can study modena.css and try to make it match JavaFX's TextArea's border exactly.

@hwaite
Copy link
Author

hwaite commented Nov 3, 2015

OK, thx.

@hwaite hwaite closed this as completed Nov 3, 2015
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

2 participants