|
|
@ -1,7 +1,7 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* MIT License |
|
|
|
* 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 |
|
|
|
* 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, |
|
|
|
* 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) { |
|
|
|
private void replaceColorDefinitions(final ParsedElement element) { |
|
|
|
for (ParsedElement child : element.children()) { |
|
|
|
for (ParsedElement child : element.children()) { |
|
|
|
if (child.node() instanceof LinearGradient || child.node() instanceof SolidColor) { |
|
|
|
if (child.node() instanceof LinearGradient) { |
|
|
|
replaceGradientColor(child, "opacity"); |
|
|
|
replaceGradientColor(child, "opacity"); |
|
|
|
} else if (child.node() instanceof SolidColor) { |
|
|
|
} else if (child.node() instanceof SolidColor) { |
|
|
|
replaceGradientColor(child, "solid-opacity"); |
|
|
|
replaceGradientColor(child, "solid-opacity"); |
|
|
|