FontIcon whose color is chosen in code rather than by the theme -- a group's color, or the gray of a
disabled icon. The font-backed counterpart to JabRefSvgIcon.
Plain FontIcon#setIconColor(Paint) is not enough for that: JavaFX lets a value from an author stylesheet
win over one set programmatically, so the .glyph-icon and .ikonli-font-icon rules in jabref-base.css
would paint the icon in the theme's text color again on the next CSS pass. The usual way out -- reporting
the property as not settable -- is closed too, because Ikonli's -fx-icon-color metadata answers
CssMetaData#isSettable with a constant true.
What is left is getCssMetaData(): CSS only ever touches the properties a node lists there, so this node
lists neither color property. Everything else -- sizes, bounds type -- stays under the theme's control.
| Modifier and Type | Field and Description |
|---|---|
| private static final Set | COLOR_PROPERTIES
The properties that color a |
| private static final List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static List | getClassCssMetaData()
Hides org. Gets the |
| public List | getCssMetaData()
Overrides org. Implements javafx. The CssMetaData of this Styleable. |
| COLOR_PROPERTIES | back to summary |
|---|---|
| private static final Set<String> COLOR_PROPERTIES The properties that color a | |
| CSS_META_DATA | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> CSS_META_DATA | |
| JabRefFontIcon | back to summary |
|---|---|
| pack-priv JabRefFontIcon(Ikon ikon, int size, Paint color) | |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides org. Doc from javafx. Gets the | |
| getCssMetaData | back to summary |
|---|---|
| public List Overrides org. Implements javafx. Doc from javafx. The CssMetaData of this Styleable. This may be returned as an unmodifiable list.
| |