Get/set menuitems and icons color of the menubar in Monterey

Hi all,

The menuitems and icons color of the menubar in Monterey change depending on the color of the desktop picture.
Is there any way to use AppleScript to know if they are white or black and to switch between these two options?

Thanks

L.

Just to bring this back to everybody attention, in case there is someone that know how to get/set menu-items and icons color of the menubar in Monterey.

Thanks !

L.