Skip to content

Commit 6028bd8

Browse files
committed
Fix icon path
1 parent 02519c5 commit 6028bd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/joutvhu/intellij/dartscripts/util/DartIcons.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public class DartIcons implements Serializable {
1212
private static final long serialVersionUID = -7782889778971848655L;
1313

1414
@NotNull
15-
public final Icon ScriptIcon = load("icons/dartScript.svg", -7782889778971848656L, 0);
15+
public final Icon ScriptIcon = load("/icons/dartScript.svg");
1616

1717
@NotNull
18-
private Icon load(@NotNull String path, long cacheKey, int flags) {
19-
return IconManager.getInstance().loadRasterizedIcon(path, DartIcons.class.getClassLoader(), cacheKey, flags);
18+
private Icon load(@NotNull String path) {
19+
return IconManager.getInstance().getIcon(path, DartIcons.class);
2020
}
2121
}

0 commit comments

Comments
 (0)