Maui android system navigation bar icons color

Haviv Elbsz 1,231 Reputation points

Hello all. I use this method in oncreate and it's worked ok but the icons triangle circle and square are in white color and I want them in black color. Please how to do it. Thank you very much

protected override void OnCreate(Bundle savedInstanceState)
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,871 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,166 Reputation points Microsoft Vendor


    You can do it by adding following code to change the icon color to light black(like grey) in OnCreate method, but you cannot change it to purity black.

    WindowInsetsControllerCompat windowInsetController = WindowCompat.GetInsetsController(Window, Window.DecorView);
    windowInsetController.AppearanceLightNavigationBars = true;

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful