Skip to content

Change text color of StyledClassedTextArea with css #328

@firm1

Description

@firm1

Hi,

Thank a lot for your lib, but i have a new problem with RichTextFx. I use v0.6.10 of your lib.
I have a StyleClassedTextArea and i need to change color of text by css styling.

With this java code :

myText.getStyleClass().add("markdown-editor");

I tried try many things in css.

.markdown-editor {
    -fx-background-color:#000;
    -fx-text-fill: #FFF;
}

or

.markdown-editor {
    -fx-background-color:#000;
    -fx-fill: #FFF;
}
.markdown-editor .label{
    -fx-background-color:#000;
    -fx-text-fill: #FFF;
}

Whatever css, my background is black, but my text stay black despite my attempts.

Do you know any solution for change text color ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions