735 {
736 if ( !w )
737 {
738 return
739 }
740
742 {
743 return;
744 }
745
746 if ( w.IsInherited( ButtonWidget ) )
747 {
748 ButtonWidget button = ButtonWidget.Cast( w );
749 button.SetTextColor(
ARGB( 255, 255, 255, 255 ) );
750 }
751 else if ( !w.IsInherited( EditBoxWidget ) )
752 {
753 w.SetColor(
ARGB( 0, 255, 255, 255 ) );
754 }
755
756 TextWidget text1 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text" ) );
757 TextWidget text2 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_text_1" ) );
758 TextWidget text3 = TextWidget.Cast(w.FindAnyWidget( w.GetName() + "_label" ) );
759 ImageWidget image = ImageWidget.Cast( w.FindAnyWidget( w.GetName() + "_image" ) );
760
761 Widget option =
Widget.Cast( w.FindAnyWidget( w.GetName() +
"_option_wrapper" ) );
762
763 if ( text1 )
764 {
765 text1.SetColor(
ARGB( 255, 255, 255, 255 ) );
766 }
767
768 if ( text2 )
769 {
770 text2.SetColor(
ARGB( 255, 255, 255, 255 ) );
771 }
772
773 if ( text3 )
774 {
775 text3.SetColor(
ARGB( 255, 255, 255, 255 ) );
776 w.SetAlpha(0);
777 }
778
779 if ( image )
780 {
781 image.SetColor(
ARGB( 255, 255, 255, 255 ) );
782 }
783
784 if ( option )
785 {
786 option.SetColor(
ARGB( 150, 255, 255, 255 ) );
787 }
788 }
int ARGB(int a, int r, int g, int b)