objective c - Is it possible to control the amount of vibrancy of the translucent/blurry background in Yosemite? -


i know whether possible control amount of translucency in so-called vibrancy effect introduced yosemite, can implemented in objective-c app employing nsvisualeffectview class.

here example more specific. consider translucent effect shown yosemite os x when volume level changed:

yosemite

the vibrancy stronger 1 obtains using simple nsvisualeffectview (shown in following image)

nsvisualeffectview

if compare 2 images — please, ignore different form of speakers focus on background — see amount of vibrancy (the strength in gaussian blurring effect) stronger in yosemite os x volume window instead of app using nsvisualeffectview. how can 1 obtain that?

in os x yosemite apple introduced new materials can applied nsvisualeffectview.

from appkit release notes os x v10.11:

nsvisualeffectview has additional materials available, , organized in 2 types of categories. first, there abstract system defined materials defined how should used: nsvisualeffectmaterialappearancebased, nsvisualeffectmaterialtitlebar, nsvisualeffectmaterialmenu (new in 10.11), nsvisualeffectmaterialpopover (new in 10.11), , nsvisualeffectmaterialsidebar (new in 10.11). use these materials when attempting create design mimics these standard ui pieces. next, there specific palette materials can used more directly create specific design or look. these are: nsvisualeffectmateriallight, nsvisualeffectmaterialdark, nsvisualeffectmaterialmediumlight (new 10.11), , nsvisualeffectmaterialultradark (new 10.11). these colors may vary depending on blendingmode set on nsvisualeffectview; in cases, may same material.

even though applies os x el capitan, can create more "close original" blur effect view. assume apple uses nsvisualeffectmaterialmediumlight material volume view.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -