-
Notifications
You must be signed in to change notification settings - Fork 236
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
Change CodeArea default textcolor #187
Comments
The following should do: .code-area .text {
-fx-fill: #888888;
} In order to not override other styles, make the selectors for other styles more specific, i.e. |
Thank you, that works fine 👍 |
What about LineNumberFactory with the .code-area .text {
-fx-fill: #E0E2E4;
}
.code-area .lineno {
-fx-text-fill: red; /* it doesn't work */
-fx-fill: red; /* it doesn't work too */
} |
Hi, can you please try using a more specific selector in order to take precedence, like .code-area .lineno .text {
-fx-fill: red;
} or a more specific selector that does not select line numbers to start with, like .code-area .text-flow .text {
-fx-fill: #E0E2E4;
} ? |
Hi, the first solution Many thanks 👍 |
Maybe an Issue, maybe I just do not know, how to do it.
I want to set the default text of the CodeArea.
I changed:
.code-area{
-fx-background-color:#222222;
}
.styled-text-area .label{
-fx-background-color:#111111;
-fx-text-fill:#888888;
}
.code-area .scroll-bar:horizontal ,
.code-area .scroll-bar:vertical{
-fx-background-color:#000000;
}
.code-area .scroll-bar:horizontal .thumb{
-fx-background-color: linear-gradient(#040404 0%,#1d1d1d 50, #040404 0%);
}
.code-area .scroll-bar:vertical .thumb{
-fx-background-color: linear-gradient(to right,#040404 0%,#1d1d1d 50, #040404 0%);
}
As workaround I used all not matched characters (Syntax) as another matchgroup with the textcolor.
The text was updated successfully, but these errors were encountered: