Hi,
the property you must override is titleBarBackgroundColor, but it's
not in the Alert skin class (TerraAlertSkin) it's in one of its parent
classes (TerraFrameSkin) ... and there are many others if useful to
you, like the color for the text of the title ( titleBarColor ).
Generally speaking, when you don't find a style, it's useful to have
Skin sources ready, and look in them.

Note that in this way you must override any instance of your class
(because style is local to an instance) ... and this is the
recommended approach.

Otherwise you can set the new color in a custom palette (like in the
"Color Scheme Builder" Demo) but in this way you change the same color
even in other components.
Or you can set a Component custom global style (there is a sample for
this, but I don't remember its name now ... should be named styles or
similar).


Anyway, to see the new look in a fast way, you can even try with the
"Color Scheme Builder" Demo where you can see how colors are get from
the palette, from Pivot Components.

Bye,
Sandro

Reply via email to