Browse Source

Ignore generated documentation.

Check for invalid opacity values.
pull/215/head
weisj 4 years ago
parent
commit
295580aefc
  1. 1
      .gitignore
  2. 1
      core/src/test/java/documentation/CreateUITable.java

1
.gitignore vendored

@ -56,6 +56,7 @@ Thumbs.db
*.dylib *.dylib
*.dll *.dll
/scratch/ /scratch/
/documentation/
# Eclipse # Eclipse
.classpath .classpath

1
core/src/test/java/documentation/CreateUITable.java

@ -280,6 +280,7 @@ public class CreateUITable {
for (Object child : children) { for (Object child : children) {
if (child instanceof LinearGradient) { if (child instanceof LinearGradient) {
float opacity = IconColorMapper.getOpacity((LinearGradient) child, currentDefaults); float opacity = IconColorMapper.getOpacity((LinearGradient) child, currentDefaults);
if (opacity < 0) opacity = 1;
Color color = IconColorMapper.getColor((LinearGradient) child, currentDefaults); Color color = IconColorMapper.getColor((LinearGradient) child, currentDefaults);
String id = ((LinearGradient) child).getId(); String id = ((LinearGradient) child).getId();
String match = "=\"url\\(#" + id + "\\)\""; String match = "=\"url\\(#" + id + "\\)\"";

Loading…
Cancel
Save