开发者

Is it possible to use the blur behind Core Animation(effect) on an NSPanel?

开发者 https://www.devze.com 2023-02-05 14:24 出处:网络
The context menu from dock items is not only translucent but also blurs the contents behind it, Is this effect availible for translucent floating panels? This is the same effect used in Sheet Alert di

The context menu from dock items is not only translucent but also blurs the contents behind it, Is this effect availible for translucent floating panels? This is the same effect used in Sheet Alert dialogs (e.g. quit with unsaved changes) but in that case the transparency is different, and the background is light rather than dark

Is it possible to use the blur behind Core Animation(effect) on an NSPanel?

Some background, we have a pro app that is frequently used full screen, and our floating palettes have some transparency, but obviously the more transparency we have the harder it is to read the text on them when the background is very active/noisy, if we could have a slight blur we would be able to greatly improve the readability on the text while still allowing some开发者_高级运维 context of "whats behind the palette"


I think this is what you want: Using Core Image Filters On/Under a NSWindow

Beware that this is private API though, so if you're developing for the Mac App Store, this would be a problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号