Share via

Maui for android UserAppTheme behaviour

Haviv Elbsz 2,151 Reputation points
2023-08-20T05:20:01.09+00:00

Hello all. in my app file I added this line. Application.Current.UserAppTheme = AppTheme.Light for dark theme this works ok but the pickers have blue text 'Cancel' on black background and this hard to to see. is there a way to fix this. Thank you very much.

Developer technologies | .NET | .NET Multi-platform App UI
0 comments No comments

Answer accepted by question author

Anonymous
2023-08-21T07:15:24.22+00:00

Hello,

Firstly, this issue filed on the github: Android: text color in buttons in alert dialog and picker dialog for default theme has very low contrast in dark mode #15088

This issue will be fixed in the fixed-in-8.0.0-preview.7.8842

If you used .NET7 or .NET6, you can change the color of the Picker's button color, open your Platforms/Android/Resources/values/colors.xml, change the value of this key <color name="colorPrimary">#FF0000</color>

Best Regards,

Leon Lu


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.