mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
Adjust marker and cursor colours from the theme (#3735)
* Support adjusting marker and cursor colours from the theme
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user