Is Dark mode supported for this control

Hi

Would you be able to let us know if dark mode is supported for this control?

We have many pages where we use the SFTextInputLayout and we tried to change the color of the hint based on the theme but the color does not change .

We have 2 resource Dictionary - LightMode vs DarkMode and depending on the theme we use the appropriate color.



  <core:SfTextInputLayout

      Hint="Name">

      <core:SfTextInputLayout.HintLabelStyle>

          <core:LabelStyle TextColor="{DynamicResource PrimaryTextColor}" />

      </core:SfTextInputLayout.HintLabelStyle>

      <Entry Text="{Binding Name}"/>

  </core:SfTextInputLayout>


Whatever we do the color of the hint does not change?

What Am I missing?


thanks


3 Replies

AJ AhamedAliNishad JahirHussain Syncfusion Team July 28, 2023 02:31 PM UTC

Hi ,


I would like to bring to your attention an issue we are experiencing with the Maui framework. The inner layer dynamic resource is not functioning as expected. We have already reported this issue to the Maui framework team, and you can find more details on the issue link below:


Link: https://github.com/dotnet/maui/issues/3745


Currently, we only have the option to modify the full HintLableStyle at the sample level. We have prepared a sample for your reference,  which is attached. It works fine based on both the Dark and Light themes. Please review the sample and let us know your feedback.


Regards,

Ahamed Ali Nishad.


Attachment: TextInputLayoutSample_(2)_ce650a57.zip


MT Mobile Team July 31, 2023 07:35 AM UTC

Hi 

thanks for your reply, deep down I just knew it was a Maui bug.. Apptheme binding is not used in our apps as we swap dictionaries at run time.. 

I think you should put pressure on the maui team to have this fixed as theming will just not work for any syncfusion controls.


thans



AJ AhamedAliNishad JahirHussain Syncfusion Team August 1, 2023 01:59 PM UTC

Hi ,

 

Thanks for the update,

 

We have been continuously monitoring the Maui bug through the provided link: https://github.com/dotnet/maui/issues/3745. Once the reported issue is resolved, we will inform you with the details.

 

Regards,

Ahamed Ali Nishad.


Loader.
Up arrow icon