Commit 077bcb27 authored by Riegel's avatar Riegel
Browse files

Style: Rework color coding of ZIP entries

parent 4da4d843
Pipeline #10908 passed with stage
in 5 minutes and 15 seconds
...@@ -13,9 +13,18 @@ public class ZipEntryNode { ...@@ -13,9 +13,18 @@ public class ZipEntryNode {
public Color getTextColor() { public Color getTextColor() {
if (entry.getErrorType() != null) { if (entry.getErrorType() != null) {
return Color.RED; return Color.DARKRED;
} else if (entry.getModel() != null && entry.getModel().isValidated()) { } else if (entry.getModel() != null) {
if (entry.getModel().getNumberOfFeatures() == 0) {
return Color.GRAY;
}
if (entry.getModel().isValidated()) {
if (entry.getModel().collectErrors().isEmpty()) {
return Color.GREEN; return Color.GREEN;
}
return Color.RED;
}
return Color.BLUE;
} else if (entry.isDecompressed()) { } else if (entry.isDecompressed()) {
return Color.BLUE; return Color.BLUE;
} else { } else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment