Browse Source

Icons: Remove failing call to #patchColors

The super call was passing the incorrect properties, which would
result in a failure. Because the subsequent call patched with the
correct arguments anyway this only caused an incorrect warning to
display.
pull/336/head
Jannis Weis 2 years ago
parent
commit
e2d1e56c24
No known key found for this signature in database
GPG Key ID: 7C9D8D4B558049AB
  1. 1
      property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/CustomThemedIcon.java
  2. 2
      property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/ThemedSVGIcon.java

1
property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/CustomThemedIcon.java

@ -131,7 +131,6 @@ public class CustomThemedIcon extends ThemedSVGIcon implements MutableThemedIcon
@Override
protected void patchColors() {
super.patchColors();
ThemedSVGIconParserProvider.patchColors(paints(), getProperties(), getContextProperties());
}

2
property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/ThemedSVGIcon.java

@ -123,6 +123,6 @@ public class ThemedSVGIcon extends DarkSVGIcon implements ThemedIcon {
}
protected void patchColors() {
ThemedSVGIconParserProvider.patchColors(paints, getContextDefaults(), null);
ThemedSVGIconParserProvider.patchColors(paints(), getContextDefaults(), null);
}
}

Loading…
Cancel
Save