#19269: Possibility to detect effectiveAppearance for wxTaskBarIcon on macOS 11.0 and higher

13 views
Skip to first unread message

wxTrac

unread,
Sep 22, 2021, 3:31:06 PM9/22/21
to wx-...@googlegroups.com
#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>
Reply all
Reply to author
Forward
0 new messages