From e2d1e56c24f147737fb9ce173f3362efac429437 Mon Sep 17 00:00:00 2001 From: Jannis Weis <31143295+weisJ@users.noreply.github.com> Date: Sun, 2 Oct 2022 16:57:52 +0200 Subject: [PATCH] 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. --- .../github/weisj/darklaf/properties/icons/CustomThemedIcon.java | 1 - .../github/weisj/darklaf/properties/icons/ThemedSVGIcon.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/CustomThemedIcon.java b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/CustomThemedIcon.java index 17ea9a78..3c1b8839 100644 --- a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/CustomThemedIcon.java +++ b/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()); } diff --git a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/ThemedSVGIcon.java b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/ThemedSVGIcon.java index e4a6c987..8a25cfeb 100644 --- a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/ThemedSVGIcon.java +++ b/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); } }