In the Develop branch on GitHub I've changed how the widget inheritance works... it is now much easier to override drawing behavior for all widgets of a particular type. To change all sliders, for example, you override:
Slider.prototype.draw = function() {
// your new drawing code
}
You can also customize event handling / whatever else you want about widgets in the same way. You can still override drawing for one particular widget as well... if you have a slider named "mySlider" you would just use:
mySlider.draw = function() {
// your new drawing code
}
I'm thinking about just going ahead and moving to using canvas for all the drawing routines... if I do this (which would require some work) the flexibility of customizing draw routines will be greatly improved.
I've only committed these changes for iOS, but I don't think it will take much work to incorporate them into Android. Will try to do that soon. - Charlie