Răsfoiți Sursa

Add high contrast theme option

Alex Dima 9 ani în urmă
părinte
comite
51f62859ef
2 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 1 0
      website/index.html
  2. 2 2
      website/index/index.js

+ 1 - 0
website/index.html

@@ -81,6 +81,7 @@
 							<select class="theme-picker">
 								<option>Visual Studio</option>
 								<option>Visual Studio Dark</option>
+								<option>High Contrast Dark</option>
 							</select>
 						</div>
 					</div>

+ 2 - 2
website/index/index.js

@@ -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 });
 	}