PDA

View Full Version : Change default color of frame animation



soledev
12 Jul 2009, 9:23 PM
How do you change the default color of Ext.Fx.frame() animation method? Thanks.

mystix
12 Jul 2009, 9:30 PM
http://extjs.com/docs/?class=Ext.Fx&member=frame

soledev
12 Jul 2009, 9:34 PM
mystix,

I mean the default color, 'C3DAF9'. So instead of doing this to change the color to 'FFBE00',

Ext.Fx.frame('FFBE00');

I want to achieve the above, with just Ext.Fx.frame()

Thanks.

Condor
12 Jul 2009, 10:33 PM
It's hard-coded in the frame method, so you would have to override it to be able to change it.

Maybe I should make a feature request to make the default values of Fx animation configurable...

soledev
12 Jul 2009, 11:04 PM
I vote yes on this idea. Similarly this should also be implemented for highlight(). Being able to set a default configuration to these effects,makes them more user friendly when developing various theme/skin for a project using Ext.

Thanks.

Animal
13 Jul 2009, 12:49 AM
Good idea.

Ext.Fx.defaultFrameColor and Ext.Fx.defaultHighlightColor

(I suppose we have to spell them that way.8-|)