@@ -53,51 +53,51 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
5353 formBubble = view .findViewById (R .id .form_bubble );
5454
5555
56- CometChatTheme theme = CometChatTheme .getInstance (getContext () );
56+ CometChatTheme theme = CometChatTheme .getInstance ();
5757 //create style object for Form bubble
5858 FormBubbleStyle formBubbleStyle = new FormBubbleStyle ()
5959 .setTitleAppearance (theme .getTypography ().getHeading ())
60- .setTitleColor (theme .getPalette ().getAccent ())
60+ .setTitleColor (theme .getPalette ().getAccent (getContext () ))
6161
6262 .setLabelAppearance (theme .getTypography ().getSubtitle1 ())
63- .setLabelColor (theme .getPalette ().getAccent ())
63+ .setLabelColor (theme .getPalette ().getAccent (getContext () ))
6464
6565 .setInputTextAppearance (theme .getTypography ().getSubtitle1 ())
66- .setInputTextColor (theme .getPalette ().getAccent ())
67- .setInputHintColor (theme .getPalette ().getAccent500 ())
68- .setErrorColor (theme .getPalette ().getError ())
69- .setInputStrokeColor (theme .getPalette ().getAccent600 ())
70- .setActiveInputStrokeColor (theme .getPalette ().getAccent ())
71-
72- .setDefaultCheckboxButtonTint (theme .getPalette ().getAccent500 ())
73- .setSelectedCheckboxButtonTint (theme .getPalette ().getPrimary ())
74- .setErrorCheckboxButtonTint (theme .getPalette ().getError ())
75- .setCheckboxTextColor (theme .getPalette ().getAccent ())
66+ .setInputTextColor (theme .getPalette ().getAccent (getContext () ))
67+ .setInputHintColor (theme .getPalette ().getAccent500 (getContext () ))
68+ .setErrorColor (theme .getPalette ().getError (getContext () ))
69+ .setInputStrokeColor (theme .getPalette ().getAccent600 (getContext () ))
70+ .setActiveInputStrokeColor (theme .getPalette ().getAccent (getContext () ))
71+
72+ .setDefaultCheckboxButtonTint (theme .getPalette ().getAccent500 (getContext () ))
73+ .setSelectedCheckboxButtonTint (theme .getPalette ().getPrimary (getContext () ))
74+ .setErrorCheckboxButtonTint (theme .getPalette ().getError (getContext () ))
75+ .setCheckboxTextColor (theme .getPalette ().getAccent (getContext () ))
7676 .setCheckboxTextAppearance (theme .getTypography ().getSubtitle1 ())
7777
78- .setButtonBackgroundColor (theme .getPalette ().getPrimary ())
79- .setButtonTextColor (theme .getPalette ().getAccent900 ())
78+ .setButtonBackgroundColor (theme .getPalette ().getPrimary (getContext () ))
79+ .setButtonTextColor (theme .getPalette ().getAccent900 (getContext () ))
8080 .setButtonTextAppearance (theme .getTypography ().getSubtitle1 ())
81- .setProgressBarTintColor (theme .getPalette ().getAccent900 ())
82- .setRadioButtonTint (theme .getPalette ().getAccent500 ())
83- .setRadioButtonTextColor (theme .getPalette ().getAccent ())
81+ .setProgressBarTintColor (theme .getPalette ().getAccent900 (getContext () ))
82+ .setRadioButtonTint (theme .getPalette ().getAccent500 (getContext () ))
83+ .setRadioButtonTextColor (theme .getPalette ().getAccent (getContext () ))
8484 .setRadioButtonTextAppearance (theme .getTypography ().getSubtitle1 ())
85- .setSelectedRadioButtonTint (theme .getPalette ().getPrimary ())
85+ .setSelectedRadioButtonTint (theme .getPalette ().getPrimary (getContext () ))
8686
87- .setSpinnerTextColor (theme .getPalette ().getAccent ())
87+ .setSpinnerTextColor (theme .getPalette ().getAccent (getContext () ))
8888 .setSpinnerTextAppearance (theme .getTypography ().getSubtitle1 ())
89- .setSpinnerBackgroundColor (theme .getPalette ().getAccent500 ())
89+ .setSpinnerBackgroundColor (theme .getPalette ().getAccent500 (getContext () ))
9090
91- .setBackground (theme .getPalette ().getBackground ())
91+ .setBackground (theme .getPalette ().getBackground (getContext () ))
9292 .setBackground (theme .getPalette ().getGradientBackground ())
9393
9494 .setSingleSelectStyle (new SingleSelectStyle ()
9595 .setOptionTextAppearance (theme .getTypography ().getSubtitle1 ())
96- .setOptionTextColor (theme .getPalette ().getAccent500 ())
96+ .setOptionTextColor (theme .getPalette ().getAccent500 (getContext () ))
9797 .setSelectedOptionTextAppearance (theme .getTypography ().getSubtitle1 ())
98- .setSelectedOptionTextColor (theme .getPalette ().getAccent ())
99- .setButtonStrokeColor (theme .getPalette ().getAccent600 ())
100- .setTitleColor (theme .getPalette ().getAccent ())
98+ .setSelectedOptionTextColor (theme .getPalette ().getAccent (getContext () ))
99+ .setButtonStrokeColor (theme .getPalette ().getAccent600 (getContext () ))
100+ .setTitleColor (theme .getPalette ().getAccent (getContext () ))
101101 .setTitleAppearance (theme .getTypography ().getSubtitle1 ())
102102 );
103103 formBubble .setStyle (formBubbleStyle );
0 commit comments