From 6047f09f9618374e6ff496695849bae568b874af Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Wed, 24 Aug 2016 09:49:49 +0200 Subject: [PATCH] Add hc-black toggle --- test/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/index.js b/test/index.js index 4623a011..ce285c54 100644 --- a/test/index.js +++ b/test/index.js @@ -219,6 +219,12 @@ function createOptions(editor) { editor.updateOptions({ theme: newValue ? 'vs-dark' : 'vs' }); })); + options.appendChild(createOptionToggle(editor, 'hc-black', function(config) { + return config.viewInfo.theme === 'hc-black'; + }, function(editor, newValue) { + editor.updateOptions({ theme: newValue ? 'hc-black' : 'vs' }); + })); + options.appendChild(createOptionToggle(editor, 'readOnly', function(config) { return config.readOnly; }, function(editor, newValue) {