Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust loading bar style? #149

Open
GoogleCodeExporter opened this issue Aug 7, 2015 · 3 comments
Open

Adjust loading bar style? #149

GoogleCodeExporter opened this issue Aug 7, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 26 Feb 2015 at 7:19

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 28 Feb 2015 at 3:53

@GoogleCodeExporter
Copy link
Author

Thanks, that's helpful :)

Original comment by [email protected] on 19 Mar 2015 at 1:15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant