RE: Change button toasts
(for WLM8.5)
open you 921 Style file, search for ai185, you should find this:
Element[ID=Atom(ai185)]
{
Content:rcimg(706);
}
button[id=Atom(FLWCloseBtn)...
See that "button element? It's the toast close button!
I'll show how is mine:
button[id=Atom(FLWCloseBtn)][ContentIndex=0]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59004);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=1]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59005);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=2]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59006);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=3]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59007);
}
In this one, there are 4 states of the button, normal(0), mouse over(1),clicked(2) and after clicked(3), and the image id's for them are 0=59004, 1=59005, 2=59006 and 3=59007, just replace the Style in your SkinInfo.xml, and add those new Images to you file. Now to the SuperToast and the AlertToast.
Look for ai190, you should find this:
Element[ID=Atom(ai190)]
{
Content:rcimg(706);
}
button[id=Atom(FLWCloseBtn)...
change it to add more pictures, with different ids from the ones you've used:
button[id=Atom(FLWCloseBtn)][ContentIndex=0]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59008);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=1]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59009);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=2]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59010);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=3]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59011);
}
and now, the alertstoast...search for ai195, you should find this:
Element[ID=Atom(ai195)]
{
Content:rcimg(706);
}
button[id=Atom(FLWCloseBtn)]..., change again:
button[id=Atom(FLWCloseBtn)][ContentIndex=0]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59012);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=1]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59013);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=2]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59014);
}
button[id=Atom(FLWCloseBtn)][ContentIndex=3]
{
AccName:rcstr(20069);
AccDesc:rcstr(20069);
Content:rcimg(59015);
}
Now, you've got 12 new Image ids (from 59004 to 59015), just add them to your SkinInfo.xml file, and your toast now should have the buttons you want...in that case, the aero ones...be sure you have 4 different ones, one for normal(ContentIndex=0), one for mouse over(ContentIndex=1), one for clicked(ContentIndex=2) and one for after-clicked(ContentIndex=3). Be sure to replace the Style file!!
|