Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jgraph/drawio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/js/grapheditor/Graph.js')
-rw-r--r--src/main/webapp/js/grapheditor/Graph.js22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/main/webapp/js/grapheditor/Graph.js b/src/main/webapp/js/grapheditor/Graph.js
index a9418211..f489009a 100644
--- a/src/main/webapp/js/grapheditor/Graph.js
+++ b/src/main/webapp/js/grapheditor/Graph.js
@@ -13828,6 +13828,12 @@ if (typeof mxVertexHandler !== 'undefined')
changeLink.style.marginLeft = '10px';
changeLink.style.marginBottom = '-1px';
changeLink.style.cursor = 'pointer';
+
+ if (Editor.isDarkMode())
+ {
+ changeLink.style.filter = 'invert(100%)';
+ }
+
this.linkHint.appendChild(changeLink);
mxEvent.addListener(changeLink, 'click', mxUtils.bind(this, function(evt)
@@ -13836,13 +13842,21 @@ if (typeof mxVertexHandler !== 'undefined')
this.graph.editLink();
mxEvent.consume(evt);
}));
-
- this.linkHint.appendChild(Graph.createRemoveIcon(mxResources.get('removeIt',
- [mxResources.get('link')]), mxUtils.bind(this, function(evt)
+
+ var trashLink = changeLink.cloneNode(true);
+
+ trashLink.setAttribute('src', Editor.trashImage);
+ trashLink.setAttribute('title', mxResources.get('removeIt',
+ [mxResources.get('link')]));
+ trashLink.style.marginLeft = '4px';
+
+ this.linkHint.appendChild(trashLink);
+
+ mxEvent.addListener(trashLink, 'click', mxUtils.bind(this, function(evt)
{
this.graph.setLinkForCell(this.state.cell, null);
mxEvent.consume(evt);
- })));
+ }));
}
}