A pretty simple script that changes the Material Editor from Compact(legacy) to Slate and vice versa.
When it is assigned to a button, the button will stay pressed if the Compact Material Editor is active. When the button is not pressed - the Slate Material Editor is active.
Idea: Haider of Sweden.