Is it possible to use blur for Core Animation (effect) on NSPanel?

The context menu of the elements of the docking station is not only translucent, but also blurs the contents behind it, is this effect available for translucent floating panels? This is the same effect that is used in the Sheet Alerts dialog box (for example, exit with unsaved changes), but in this case the transparency is different and the background is light rather than dark.

alt text

In some way, we have a pro application that is often used in full screen mode, and our floating palettes have some transparency, but obviously, the more transparency, the more difficult it is to read the text on them when the background is very active / noise, if we had a slight blur, we could significantly improve the readability of the text, while maintaining some context "what is behind the palette"

+4
source share
1 answer

I think this is what you want: Using main image filters in / under NSWindow

Remember that this is a private API, so if you are developing a Mac App Store, this will be a problem.

+1
source

Source: https://habr.com/ru/post/1336357/


All Articles