mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 12:45:39 +01:00
Add high contrast theme option
This commit is contained in:
parent
710ef24847
commit
51f62859ef
2 changed files with 3 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ $(document).ready(function() {
|
|||
changeTheme(this.selectedIndex);
|
||||
});
|
||||
$('.theme-picker').selectpicker({
|
||||
size: 2
|
||||
size: 3
|
||||
});
|
||||
|
||||
loadDiffSample();
|
||||
|
|
@ -137,7 +137,7 @@ function loadDiffSample() {
|
|||
}
|
||||
|
||||
function changeTheme(theme) {
|
||||
var newTheme = (theme === 1 ? 'vs-dark' : 'vs');
|
||||
var newTheme = (theme === 1 ? 'vs-dark' : ( theme === 0 ? 'vs' : 'hc-black' ));
|
||||
if (editor) {
|
||||
editor.updateOptions({ 'theme' : newTheme });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue