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

Changing caret color in Code area. #92

Closed
janghyunq opened this issue Oct 29, 2014 · 2 comments
Closed

Changing caret color in Code area. #92

janghyunq opened this issue Oct 29, 2014 · 2 comments

Comments

@janghyunq
Copy link

I am using this control in my personal project 'arduino IDE'. This control is great and very useful. I have a question. Is there any way to change the color of caret in Code Area? I know that the caret color is the same as "-fx-text-fill' , but it does not work. The default text color is also NOT changed by that value. Am I missing Something?

@janghyunq janghyunq changed the title Changing caret color. Changing caret color in Code area. Oct 29, 2014
@TomasMikula
Copy link
Member

Sorry for late reply. I just added style class caret to the caret node. Caret node is a Path, so you can set any styleable properties of a Path via CSS. Namely, to change the caret color, you can use the following CSS:

.caret {
    -fx-stroke: red;
}

This functionality is now available in the latest snapshot.

@janghyunq
Copy link
Author

This is great. Thank you.

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