Change ToolbarItem TextColor based on Theme #435
-
@VladislavAntonyuk I have been studying your MauiShellCustomization sample and I have Android changing color in the CustomShellToolbarAppearanceTracker/SetAppearance method with: 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.
Replies: 1 comment
-
Your app should automatically change color on AppTheme. It is done by MAUI. |
Beta Was this translation helpful? Give feedback.
Your app should automatically change color on AppTheme. It is done by MAUI.
I don't have the exact code, but the idea is to find the element (one of the children of the toolbar) and set the color. On iOS it is a TextColor (UIColor), on Windows - Label Color