Skip to content
Snippets Groups Projects

Resolve "change in BackgroungColor term = on :"

Merged Piotr Gawron requested to merge 929-change-in-backgroungcolor-term-on into master
3 files
+ 18
4
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -526,7 +526,7 @@ public class LayerXmlParser {
String lines[] = notes.split("[\n\r]+");
StringBuilder result = new StringBuilder("");
for (String line : lines) {
if (!line.startsWith("BackgroundColor=")) {
if (!line.startsWith("BackgroundColor=") && !line.startsWith("BackgroundColor:")) {
result.append(line + "\n");
}
}
@@ -536,8 +536,8 @@ public class LayerXmlParser {
Color extractBackgroundColor(String notes) {
String lines[] = notes.split("[\n\r]+");
for (String line : lines) {
if (line.startsWith("BackgroundColor=")) {
String colorString = line.replace("BackgroundColor=", "");
if (line.startsWith("BackgroundColor=") ||line.startsWith("BackgroundColor:")) {
String colorString = line.replace("BackgroundColor=", "").replace("BackgroundColor:", "");
return new ColorParser().parse(colorString);
}
}
@@ -560,7 +560,7 @@ public class LayerXmlParser {
notes = "";
}
if (!layer.getBackgroundColor().equals(Color.LIGHT_GRAY)) {
notes += "\nBackgroundColor=" + new ColorParser().colorToHtml(layer.getBackgroundColor());
notes += "\nBackgroundColor:" + new ColorParser().colorToHtml(layer.getBackgroundColor());
}
result.append(notes);
result.append("\n</celldesigner:layerNotes>");
Loading