Skip to content

Commit b5d5ed0

Browse files
authored
Merge pull request #6121 from JabRef/allow-icons-for-groups
Icons from Material design icons not recognized
2 parents ce7bb89 + c29db2e commit b5d5ed0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/jabref/gui/groups/GroupNodeViewModel.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import org.jabref.model.strings.StringUtil;
4040

4141
import com.google.common.base.Enums;
42+
import de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIcon;
4243
import org.fxmisc.easybind.EasyBind;
4344

4445
public class GroupNodeViewModel {
@@ -204,7 +205,7 @@ private JabRefIcon createDefaultIcon() {
204205
}
205206

206207
private Optional<JabRefIcon> parseIcon(String iconCode) {
207-
return Enums.getIfPresent(IconTheme.JabRefIcons.class, iconCode.toUpperCase(Locale.ENGLISH))
208+
return Enums.getIfPresent(MaterialDesignIcon.class, iconCode.toUpperCase(Locale.ENGLISH))
208209
.toJavaUtil()
209210
.map(icon -> new InternalMaterialDesignIcon(getColor(), icon));
210211
}

0 commit comments

Comments
 (0)