maconbot / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Adjust loading bar style? #149

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I'd like to alter the loading bar a bit, but I can't find any CSS or javascript 
code that determines the color etc. of this. I've searched in all files for the 
hexadecimal color code(e.g. #FF0000), but it seems the color of the loading bar 
changes when the background gradient colors are changed.

Could you tell me how to alter this?
Thanks.

Original issue reported on code.google.com by Tjardo.K...@gmail.com on 26 Feb 2015 at 7:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The generation of the default progress bar is coded in this function 
https://code.google.com/p/jsc3d/source/browse/trunk/jsc3d/jsc3d.js#1133, where 
you can see its color is automatically calculated to be in contrast to the 
background color. You may want to try with a different implementation it to 
gain better vissual effects.

A better way is to override the viewer's 
onloadingstarted/onloadingprogress/onloadingcomplete event handlers to make 
your own progress indicator. These event handlers are documented here: 
http://jsc3d.googlecode.com/svn/trunk/jsc3d/docs/symbols/JSC3D.Viewer.html, and 
you can see working examples in this 
http://jsc3d.googlecode.com/svn/trunk/jsc3d/demos/test.html and this 
http://jsc3d.googlecode.com/svn/trunk/jsc3d/demos/temple.html demos. 

Original comment by Humu2...@gmail.com on 28 Feb 2015 at 3:53

GoogleCodeExporter commented 9 years ago
Thanks, that's helpful :)

Original comment by Tjardo.K...@gmail.com on 19 Mar 2015 at 1:15