#19269: Possibility to detect effectiveAppearance for wxTaskBarIcon on macOS 11.0
and higher
-------------------------+-------------------------
Reporter: ancwrd1 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: wxOSX | Version: dev-latest
Keywords: | Blocked By:
Blocking: | Patch: 0
-------------------------+-------------------------
From Big Sur release notes:
{{{
NSStatusItem
NSStatusItem no longer follows the app appearance for its view.
Status items using custom views use the effectiveAppearance API
to determine which appearance to draw.
}}}
This has an unfortunate consequence that it's impossible to render a
correct dark/light icon on Big Sur based only on the OS theme.
Related StackOverflow article:
https://stackoverflow.com/questions/62685948/macos-big-sur-detect-dark-
menu-bar-system-tray
Suggested fix using effectiveAppearance notification:
https://github.com/yujitach/nsstatusitem-lightdark-detect
--
Ticket URL: <
https://trac.wxwidgets.org/ticket/19269>