Adjust marker and cursor colours from the theme (#3735)

* Support adjusting marker and cursor colours from the theme
This commit is contained in:
Sam El-Husseini
2020-03-11 11:23:29 -07:00
committed by GitHub
parent eb07793ba8
commit 29dc7bd7f7
11 changed files with 138 additions and 30 deletions

View File

@@ -154,6 +154,16 @@ Blockly.MarkerManager.prototype.setMarkerSvg = function(markerSvg) {
}
};
/**
* Redraw the attached cursor svg if needed.
* @package
*/
Blockly.MarkerManager.prototype.updateMarkers = function() {
if (this.workspace_.keyboardAccessibilityMode && this.cursorSvg_) {
this.workspace_.getCursor().draw();
}
};
/**
* Dispose of the marker manager.
* Go through and delete all markers associated with this marker manager.