Skip to content

Commit 00a12dd

Browse files
committed
Editor: UI tweaks.
1 parent df313b1 commit 00a12dd

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

editor/css/dark.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ input.Number {
8686
#menubar .menu.right {
8787
float: right;
8888
cursor: auto;
89+
padding-right: 0px;
8990
text-align: right;
9091
}
9192

editor/css/light.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ input.Number {
7979
#menubar .menu.right {
8080
float: right;
8181
cursor: auto;
82+
padding-right: 0px;
8283
text-align: right;
8384
}
8485

editor/js/Sidebar.Object3D.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,15 @@ Sidebar.Object3D = function ( editor ) {
255255
var objectCastShadow = new UI.Checkbox().onChange( update );
256256

257257
objectCastShadowSpan.add( objectCastShadow );
258-
objectCastShadowSpan.add( new UI.Text( 'cast' ) );
258+
objectCastShadowSpan.add( new UI.Text( 'cast' ).setMarginLeft( '3px' ) );
259259

260260
objectShadowRow.add( objectCastShadowSpan );
261261

262262
var objectReceiveShadowSpan = new UI.Span();
263263
var objectReceiveShadow = new UI.Checkbox().onChange( update );
264264

265265
objectReceiveShadowSpan.add( objectReceiveShadow );
266-
objectReceiveShadowSpan.add( new UI.Text( 'receive' ) );
266+
objectReceiveShadowSpan.add( new UI.Text( 'receive' ).setMarginLeft( '3px' ) );
267267

268268
objectShadowRow.add( objectReceiveShadowSpan );
269269

editor/js/Sidebar.Project.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Sidebar.Project = function ( editor ) {
8585
} );
8686

8787
rendererAntialiasSpan.add( rendererAntialias );
88-
rendererAntialiasSpan.add( new UI.Text( 'antialias' ) );
88+
rendererAntialiasSpan.add( new UI.Text( 'antialias' ).setMarginLeft( '3px' ) );
8989

9090
rendererPropertiesRow.add( rendererAntialiasSpan );
9191

@@ -100,7 +100,7 @@ Sidebar.Project = function ( editor ) {
100100
} );
101101

102102
rendererShadowsSpan.add( rendererShadows );
103-
rendererShadowsSpan.add( new UI.Text( 'shadows' ) );
103+
rendererShadowsSpan.add( new UI.Text( 'shadows' ).setMarginLeft( '3px' ) );
104104

105105
rendererPropertiesRow.add( rendererShadowsSpan );
106106

editor/js/Toolbar.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,21 @@ var Toolbar = function ( editor ) {
3737

3838
// grid
3939

40-
var grid = new UI.Number( 25 ).onChange( update );
41-
grid.dom.style.width = '42px';
40+
var grid = new UI.Number( 25 ).setWidth( '40px' ).onChange( update );
4241
buttons.add( new UI.Text( 'Grid: ' ) );
4342
buttons.add( grid );
4443

45-
var snap = new UI.Checkbox( false ).onChange( update );
44+
var snap = new UI.Checkbox( false ).onChange( update ).setMarginLeft( '10px' );
4645
buttons.add( snap );
47-
buttons.add( new UI.Text( 'snap' ) );
46+
buttons.add( new UI.Text( 'snap' ).setMarginLeft( '3px' ) );
4847

49-
var local = new UI.Checkbox( false ).onChange( update );
48+
var local = new UI.Checkbox( false ).onChange( update ).setMarginLeft( '10px' );
5049
buttons.add( local );
51-
buttons.add( new UI.Text( 'local' ) );
50+
buttons.add( new UI.Text( 'local' ).setMarginLeft( '3px' ) );
5251

53-
var showGrid = new UI.Checkbox().onChange( update ).setValue( true );
52+
var showGrid = new UI.Checkbox().onChange( update ).setValue( true ).setMarginLeft( '10px' );
5453
buttons.add( showGrid );
55-
buttons.add( new UI.Text( 'show' ) );
54+
buttons.add( new UI.Text( 'show' ).setMarginLeft( '3px' ) );
5655

5756
function update() {
5857

0 commit comments

Comments
 (0)