Browse Source

Editor: Fixed background color.

Mr.doob 11 years ago
parent
commit
3a84325847
3 changed files with 10 additions and 6 deletions
  1. 1 2
      editor/css/dark.css
  2. 1 2
      editor/css/light.css
  3. 8 2
      editor/js/Viewport.js

+ 1 - 2
editor/css/dark.css

@@ -50,7 +50,7 @@ button {
 	-webkit-user-select: none;
 	-ms-user-select: none;
 
-		/* No support for these yet */
+	/* No support for these yet */
 	-o-user-select: none;
 	user-select: none;
 }
@@ -88,7 +88,6 @@ input.Number {
 	left: 0px;
 	right: 300px;
 	bottom: 32px;
-	background-color: #333333;
 }
 
 #menubar {

+ 1 - 2
editor/css/light.css

@@ -23,7 +23,7 @@ button {
 	-webkit-user-select: none;
 	-ms-user-select: none;
 
-		/* No support for these yet */
+	/* No support for these yet */
 	-o-user-select: none;
 	user-select: none;
 }
@@ -62,7 +62,6 @@ input.Number {
 	left: 0px;
 	right: 300px;
 	bottom: 32px;
-	background-color: #aaaaaa;
 }
 
 #menubar {

+ 8 - 2
editor/js/Viewport.js

@@ -184,8 +184,14 @@ var Viewport = function ( editor ) {
 
 		switch ( value ) {
 
-			case 'css/light.css': grid.setColors( 0x444444, 0x888888 ); break;
-			case 'css/dark.css': grid.setColors( 0xbbbbbb, 0x888888 ); break;
+			case 'css/light.css':
+				grid.setColors( 0x444444, 0x888888 );
+				renderer.setClearColor( 0xaaaaaa );
+				break;
+			case 'css/dark.css':
+				grid.setColors( 0xbbbbbb, 0x888888 );
+				renderer.setClearColor( 0x333333 );
+				break;
 
 		}