Browse Source

Update jsvg to version 1.0.0

pull/345/head
Jannis Weis 2 years ago
parent
commit
f584703870
No known key found for this signature in database
GPG Key ID: 7C9D8D4B558049AB
  1. 2
      gradle.properties
  2. 4
      property-loader/src/main/java/com/github/weisj/darklaf/properties/icons/ThemedSVGIconParserProvider.java

2
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

4
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");

Loading…
Cancel
Save