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 styling issue #347

Closed
jtrunick opened this issue Aug 18, 2016 · 2 comments
Closed

CodeArea styling issue #347

jtrunick opened this issue Aug 18, 2016 · 2 comments

Comments

@jtrunick
Copy link

I set my CodeArea background color to black, this means that I'm typing "in the dark" until my highlighting logic catches up. I'm borrowing very heavily from the Async example.

I added this so that the text will show up as something visible right away:

.styled-text-area .text {
    -fx-fill: purple;
}

However, now the problem is that my StyleSpans for color is being overriden by this one. I'm not savvy enough to figure out how to fix this by somehow tweaking the passed in styling classes to be more specific. How should I address this?

@TomasMikula
Copy link
Member

Hi, if your style class is highlight, then this should do it:

.styled-text-area .text.highlight {
    -fx-fill: yellow;
}

Note the lack of whitespace between .text and .highlight.

@jtrunick
Copy link
Author

awesome, great, that worked.

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