In conjunction with https://github.com/gonfunko/scratch-blocks/pull/152, this PR fixes the appearance of dropdown menus in shadow blocks. When scratch-gui patches block definitions in order to have menu generators which are dependent upon VM state, it had been manually setting the colors to colors exported by scratch-blocks. Instead, we now use the same extension approach that the main block definitions use, which fixes some bugs caused by the inconsistency. This PR also fetches the dropdown field from the registry rather than hardcoding Blockly's in order to bring in a subclass used by scratch-blocks.
In conjunction with https://github.com/gonfunko/scratch-blocks/pull/152, this PR fixes the appearance of dropdown menus in shadow blocks. When scratch-gui patches block definitions in order to have menu generators which are dependent upon VM state, it had been manually setting the colors to colors exported by scratch-blocks. Instead, we now use the same extension approach that the main block definitions use, which fixes some bugs caused by the inconsistency. This PR also fetches the dropdown field from the registry rather than hardcoding Blockly's in order to bring in a subclass used by scratch-blocks.