Skip to content

Commit

Permalink
Added support for color preferences when using nested syntheses
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sr committed Oct 23, 2023
1 parent 5efe94c commit 7a678b7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ public ViewContext(final ViewContext otherContext, final Object inputModel) {
this.businessModel = inputModel;
if (otherContext != null) {
this.synthesisOptionConfig.putAll(otherContext.synthesisOptionConfig);
// Color preferences are kind of synthesis option and should be copied
if (otherContext.hasProperty(KlighdProperties.COLOR_PREFERENCES)) {
this.setProperty(KlighdProperties.COLOR_PREFERENCES,
otherContext.getProperty(KlighdProperties.COLOR_PREFERENCES));
}
}
}

Expand Down

0 comments on commit 7a678b7

Please sign in to comment.