mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
Add hc-black toggle
This commit is contained in:
parent
a4cbae45cd
commit
6047f09f96
1 changed files with 6 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue