Change color of icon using css

Issue #50 new
Dhananjay Ghumare created an issue

how can i change color of icon using css

Comments (2)

  1. Scott Palmer

    I attempted to do this with:

    Node myIcon = new FontAwesomeIconView(FontAwesome.FILES);
    myIcon.setStyle("-fx-fill: -fx-text-base-color;");
    

    To get the icon color to match the text color. The color changes correctly, but the glyph becomes either the wrong glyph or more often an empty box glyph.

  2. Log in to comment