Hey dripro
I got the easy solution for you, dont need the css style option you can do this, keeping in mind the gray effect is for disabled option (which I see very logical) if you wanted to customize the color background for slider and the colour (on status) background for the button switch I tested with succes this code.
1- take this code for on show event, to set as default customized settings for button switchers:
tProperties = {BGStyle=0, BGColor=75632};
Paragraph.SetProperties("Paragraph8", tProperties);
tProperties2 = {BGStyle=0, BGColor=225632};
Paragraph.SetProperties("Paragraph7", tProperties2);
then go for the switcher object and slider (both into the onclick event):
for button switcher:
tSwitch = EasySlidingPro.SwitchSetPosX("Paragraph7", "Paragraph8")
if tSwitch == "1" then
--no code here to keep the grey effect as disabled...
Dialog.Message("Notice", "OFF", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
else
tProperties2 = {BGStyle=0, BGColor=225632};
Paragraph.SetProperties("Paragraph7", tProperties2);
Dialog.Message("Notice", "ON", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end
for the background slider:
tSwitch = EasySlidingPro.SwitchSetPosX("Paragraph7", "Paragraph8")
if tSwitch == "1" then
--no code here to keep the grey effect as disabled...
Dialog.Message("Notice", "OFF", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
else
tProperties2 = {BGStyle=0, BGColor=225632};
Paragraph.SetProperties("Paragraph7", tProperties2);
Dialog.Message("Notice", "ON", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
end
voila! test it youself, you will get the same effect but less coding XD, thanks for the plugin is elegant and very useful!