Skip to content

Commit

Permalink
color scheme bug fix #725
Browse files Browse the repository at this point in the history
  • Loading branch information
umut-er committed Jul 4, 2024
1 parent 17b1d4e commit a3a52a1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app/js/app-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -838,10 +838,13 @@ module.exports = function() {
for(var nodeClass in appUtilities.mapColorSchemes[currentGeneralProperties.mapColorScheme]['values']){
classBgColor = appUtilities.mapColorSchemes[currentGeneralProperties.mapColorScheme]['values'][nodeClass];
// nodeClass may not be defined in the defaultProperties (for edges, for example)
if(nodeClass in chiseInstance.elementUtilities.getDefaultProperties()){
chiseInstance.undoRedoActionFunctions.setDefaultProperty({class: nodeClass, name: 'background-image', value: ''});
chiseInstance.undoRedoActionFunctions.setDefaultProperty({class: nodeClass, name: 'background-color', value: classBgColor});
}

var bgObj = chiseInstance.elementUtilities.getBackgroundImageObjs(cy.nodes());
chiseInstance.removeBackgroundImage(cy.nodes(), bgObj);
// if(nodeClass in chiseInstance.elementUtilities.getDefaultProperties()){
// chiseInstance.undoRedoActionFunctions.setDefaultProperty({class: nodeClass, name: 'background-image', value: ''});
// chiseInstance.undoRedoActionFunctions.setDefaultProperty({class: nodeClass, name: 'background-color', value: classBgColor});
// }
}
}

Expand Down

0 comments on commit a3a52a1

Please sign in to comment.