Change the appearance of the button according to mac os native style

Hello All, @Robin , @driscollis , I’m developing the application for mac using python 3.7 and wxpython 4.1.1. I’m facing a weird issue for button, I want to make my mutton exactly look like the native mac os button, but when I try to set background color of the button it doesn’t look properly. how my button look like: MicrosoftTeams-image

And what I want my button to look like: MicrosoftTeams-image (1)

Need your expertise here
Note: Above pics are taken in mac os dark theme

Mac is pretty picky about setting foreground and background colors, I believe. Are you using wx.Button or something else?

Yes, I’m using the wx.Button

That’s strange. My understanding of wx.Button is that it should use the native widget. I wonder if there’s some extra flag you need to set that I’m just not thinking of at the moment.