raffael/RMBlurredView
关于
This subclass of NSView can be used to get an iOS 7 like blurred background to mimic a frosted glass effect.
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文RMBlurredView
This subclass of NSView can be used to get an iOS 7 like blurred background to mimic a frosted glass effect — on OS X! Check out the corresponding article on Cocoanetics.
NOTE: The parent view of the RMBlurredView must be layer-backed to see the effect.

(Chat Heads with blurred title and bottom bar)
The view can be easily customized to your needs:
blurRadius (float) A float indicating the strength of the blur effect. This will be directly passed as input parameter for the Gaussian blur CIFilter. Default: 20.0.
saturationFactor (float) A float value indicating the strength of the increased saturation effect. The Control Center for example uses increased saturated colors to get more vibrant colors shining through the view. Default: 2.0.
tintColor (NSColor) A NSColor used a the background color for the view. Default: 70% White.
NOTE: Can be used with RMSecondaryScroller to get a customizable NSScroller for NSScrollViews.
Usage
Usage should be clear once you see the annotated header file. Check out the RMBlurredViewExample project.
Contact
- Raffael Hannemann
- @raffael_me
- http://www.raffael.me/
License
Copyright (c) 2013 Raffael Hannemann Under BSD License.
Want more?
Follow @raffael_me for similar releases.
探索相关项目
加载中…