How to choose the matching icon color for menu background #70
-
On MacOS the color of the main menu depends sometimes on the color of the background image of the display. Any idea how I can adjust my systray app to achieve the same for the main icon selected via call to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Does this correlate with the users chosen colour scheme (light vs dark)? In which case you can get the "variant" from App.Settings(). |
Beta Was this translation helpful? Give feedback.
Ok
systray.SetTemplateIcon()
is the method I was searching for. If I use a black/transparent PNG, the menu icon will automatically adjust to black/white appearance in the menu bar like other standard MacOS menu items.