diff --git a/gradle.properties b/gradle.properties index 67552c22..79c6e542 100644 --- a/gradle.properties +++ b/gradle.properties @@ -19,7 +19,7 @@ net.ltgt.errorprone.version = 2.0.2 # Dependencies # Libraries -jsvg.version = 0.0.9 +jsvg.version = 1.0.0 swingDsl.version = 0.1.3 swingx.version = 1.6.1 nullabilityAnnotations.version = 23.0.0 diff --git a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/ThemedSVGIconParserProvider.java b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/ThemedSVGIconParserProvider.java index a32286e2..a7c3846c 100644 --- a/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/ThemedSVGIconParserProvider.java +++ b/property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/ThemedSVGIconParserProvider.java @@ -1,7 +1,7 @@ /* * MIT License * - * Copyright (c) 2021-2022 Jannis Weis + * Copyright (c) 2021-2023 Jannis Weis * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, @@ -71,7 +71,7 @@ public class ThemedSVGIconParserProvider extends DefaultParserProvider { private void replaceColorDefinitions(final ParsedElement element) { for (ParsedElement child : element.children()) { - if (child.node() instanceof LinearGradient || child.node() instanceof SolidColor) { + if (child.node() instanceof LinearGradient) { replaceGradientColor(child, "opacity"); } else if (child.node() instanceof SolidColor) { replaceGradientColor(child, "solid-opacity");