Unexplained black window on Mac

After a quick glance at this thread, it would seem like you are caching the colors on creation.

I would suggest caching the colors during a Paint event (the window.paint event is sufficient) so that you get the correctly theme colors, and then resetting that cache in app.appearanceChanged.

The Paint event is the ONLY event I know for sure will have the correct effectiveAppearance, and thus generate the closest colors during rasterization.

The other way is to use declares to colors on controls to NSColor objects and the OS updates these if and when needed.

1 Like

Don’t worry, I have it under control. Support for color groups is cached, as that won’t change. The colors themselves are on demand in almost all cases.