2
0
Mr.doob 5 жил өмнө
parent
commit
697f63c572

+ 1 - 1
editor/js/Sidebar.History.js

@@ -15,7 +15,7 @@ Sidebar.History = function ( editor ) {
 
 	var container = new UI.Panel();
 
-	container.add( new UI.Text( strings.getKey( 'sidebar/history/history' ) ) );
+	container.add( new UI.Text( strings.getKey( 'sidebar/history' ).toUpperCase() ) );
 
 	//
 

+ 3 - 5
editor/js/Sidebar.Project.js

@@ -17,13 +17,11 @@ Sidebar.Project = function ( editor ) {
 
 	};
 
-	var container = new UI.Panel();
-	container.setBorderTop( '0' );
-	container.setPadding( '0' );
-	container.setPaddingTop( '20px' );
+	var container = new UI.Span();
 
 	var projectsettings = new UI.Panel();
 	projectsettings.setBorderTop( '0' );
+	projectsettings.setPaddingTop( '20px' );
 
 	container.add( projectsettings );
 
@@ -176,7 +174,7 @@ Sidebar.Project = function ( editor ) {
 	var materials = new UI.Panel();
 
 	var headerRow = new UI.Row();
-	headerRow.add( new UI.Text( strings.getKey( 'sidebar/project/materials' ) ) );
+	headerRow.add( new UI.Text( strings.getKey( 'sidebar/project/materials' ).toUpperCase() ) );
 
 	materials.add( headerRow );
 

+ 3 - 1
editor/js/Sidebar.js

@@ -16,13 +16,15 @@ var Sidebar = function ( editor ) {
 		new Sidebar.Script( editor )
 	);
 
+	var project = new Sidebar.Project( editor );
+
 	var settings = new UI.Span().add(
 		new Sidebar.Settings( editor ),
 		new Sidebar.History( editor )
 	);
 
 	container.addTab( 'scene', strings.getKey( 'sidebar/scene' ), scene );
-	container.addTab( 'project', strings.getKey( 'sidebar/project' ), new Sidebar.Project( editor ) );
+	container.addTab( 'project', strings.getKey( 'sidebar/project' ), project );
 	container.addTab( 'settings', strings.getKey( 'sidebar/settings' ), settings );
 	container.select( 'scene' );
 

+ 2 - 2
editor/js/Strings.js

@@ -293,7 +293,7 @@ var Strings = function ( config ) {
 
 			'sidebar/settings/viewport/grid': 'Grid',
 
-			'sidebar/history/history': 'HISTORY',
+			'sidebar/history': 'History',
 			'sidebar/history/persistent': 'persistent',
 
 			'toolbar/translate': 'Translate',
@@ -566,7 +566,7 @@ var Strings = function ( config ) {
 
 			'sidebar/settings/viewport/grid': '网格',
 
-			'sidebar/history/history': '历史记录',
+			'sidebar/history': '历史记录',
 			'sidebar/history/persistent': '本地存储',
 
 			'toolbar/translate': '移动',

+ 0 - 2
editor/sw.js

@@ -91,8 +91,6 @@ const assets = [
 	//
 
 	'./css/main.css',
-	'./css/dark.css',
-	'./css/light.css',
 
 	'./js/EditorControls.js',
 	'./js/Storage.js',