Replies: 1 comment
-
Your app should automatically change color on AppTheme. It is done by MAUI. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@VladislavAntonyuk I have been studying your MauiShellCustomization sample and I have Android changing color in the CustomShellToolbarAppearanceTracker/SetAppearance method with:
if (Settings.Theme == AppTheme.Light) { toolbar.OverflowIcon.SetTint(ContextCompat.GetColor(Microsoft.Maui.ApplicationModel.Platform.CurrentActivity, Resource.Color.m3_ref_palette_black)); } else { toolbar.OverflowIcon.SetTint(ContextCompat.GetColor(Microsoft.Maui.ApplicationModel.Platform.CurrentActivity, Resource.Color.m3_ref_palette_white)); }
But I do not understand how to do the same in Windows, iOS and MacCatalyst. I need to change the TextColor based on Light or Dark Theme (black or white textcolor). Can you help with how I might change the colors in the needed platforms.
Thanks for all you help in these samples as they have been a great help in many things.
Beta Was this translation helpful? Give feedback.
All reactions