diff --git a/src/main/java/org/jabref/gui/icon/IconTheme.java b/src/main/java/org/jabref/gui/icon/IconTheme.java index aa95617c38f..7389e233c04 100644 --- a/src/main/java/org/jabref/gui/icon/IconTheme.java +++ b/src/main/java/org/jabref/gui/icon/IconTheme.java @@ -285,7 +285,7 @@ public enum JabRefIcons implements JabRefIcon { TWITTER(MaterialDesignT.TWITTER), BLOG(MaterialDesignR.RSS), DATE_PICKER(MaterialDesignC.CALENDAR), - DEFAULT_GROUP_ICON_COLORED(MaterialDesignP.PLAY), + DEFAULT_GROUP_ICON_COLORED(MaterialDesignR.RECORD), DEFAULT_GROUP_ICON(MaterialDesignL.LABEL_OUTLINE), ALL_ENTRIES_GROUP_ICON(MaterialDesignD.DATABASE), IMPORT(MaterialDesignC.CALL_RECEIVED), diff --git a/src/main/java/org/jabref/gui/icon/InternalMaterialDesignIcon.java b/src/main/java/org/jabref/gui/icon/InternalMaterialDesignIcon.java index b16fb86c382..ec54b368bb7 100644 --- a/src/main/java/org/jabref/gui/icon/InternalMaterialDesignIcon.java +++ b/src/main/java/org/jabref/gui/icon/InternalMaterialDesignIcon.java @@ -8,6 +8,8 @@ import javafx.scene.Node; import javafx.scene.paint.Color; +import org.jabref.gui.util.ColorUtil; + import org.kordamp.ikonli.Ikon; import org.kordamp.ikonli.javafx.FontIcon; @@ -41,7 +43,11 @@ public Node getGraphicNode() { Ikon icon = icons.get(0); FontIcon fontIcon = FontIcon.of(icon); fontIcon.getStyleClass().add("glyph-icon"); - color.ifPresent(fontIcon::setIconColor); + +// Override the default color from the css files + color.ifPresent(color -> fontIcon.setStyle(fontIcon.getStyle() + + String.format("-fx-fill: %s;", ColorUtil.toRGBCode(color)))); + return fontIcon; }