Questions tagged [nsvisualeffectview]

NSView subclass which provides support for vibrant appearances.

NSVisualEffectView provides support for the user interface effects introduced in OS X Yosemite related to translucency, including “vibrant” appearances. To make the contents of a view blend with whatever is behind the view’s window or blend with contents of a view deeper in the view hierarchy, you contain the view in a visual effect view.

Apple Developer documentation page

56 questions
26
votes
6 answers

How to make a smooth, rounded, volume-like OS X window with NSVisualEffectView?

I'm currently trying to make a window that looks like the Volume OS X window: To make this, I have my own NSWindow (using a custom subclass), which is transparent/titlebar-less/shadow-less, that has a NSVisualEffectView inside its contentView.…
Pedro Vieira
  • 3,330
  • 3
  • 41
  • 76
13
votes
3 answers

How to use NSVisualEffectView backwards-compatible with OSX < 10.10?

The upcoming OSX 10.10 ("Yosemite") offers a new type of view, NSVisualEffectView, which supports through-the-window or within-the-window translucency. I'm mostly interested in through-the-window translucency, so I'm going to focus on that in this…
Duncan C
  • 128,072
  • 22
  • 173
  • 272
12
votes
4 answers

How to get the source lists selection highlight to use the Dark Vibrancy appearance in OS X 10.10?

In OS X 10.10 source lists seem to use the light vibrancy appearance. In the Finder (and in some other third party applications, Things.app for example) the selected item in the source list is indicated by a dark vibrancy appearance. For example,…
Daniel Farrell
  • 9,316
  • 8
  • 39
  • 62
11
votes
0 answers

NSTextField on top of a NSVisualEffectView with wantsLayer aliasing issue

I'm aware that you must have a solid background color behind a NSTextField when using Core Animation layers (CALayer) as sub-pixel is not supported, however I need to use a NSVisualEffectView behind my NSOutlineView and I'm using several…
strangetimes
  • 4,953
  • 1
  • 34
  • 62
11
votes
2 answers

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

I would like to know whether it is possible to control the amount of translucency in the so-called vibrancy effect introduced recently by Yosemite, which can be implemented in an Objective-C app by employing the NSVisualEffectView class. Here is an…
6
votes
0 answers

OSX NSVisualEffectView Decrease Blur Radius

I have an NSVisualEffect with as the background for my mac app. I want the visual effect view to blur whatever it is over, but the vibrant dark is just looks like a black view. How do I decrease the blur radius so that I can see the background more…
Alex Pelletier
  • 4,933
  • 6
  • 34
  • 58
6
votes
3 answers

NSVisualEffectView with rounded corners

How display a NSVisualEffectView with with rounded corners in OS X? My code to add my NSVisualEffectView: let visualEffectView = NSVisualEffectView(frame: NSMakeRect(0, 0, 300, 300)) visualEffectView.material =…
Geek20
  • 673
  • 1
  • 9
  • 18
6
votes
2 answers

NSButton on NSVisualEffectView: Wrong Background Color

I have a NSVisualEffectView within a NSPopover developed for 10.10. When subclassing the NSVisualEffectView to have hover background color effect, the borderless button color seems to be different I tried setting the backgroundColor of the button…
Cai
  • 3,609
  • 2
  • 19
  • 39
6
votes
3 answers

NSVisualEffectView behind NSScrollView

I'm trying to get my NSScrollView (and thus a contained NSOutlineView) to use a blurred NSVisualEffectView with behind-window blending effect. I've successfully made NSVisualEffectView the container view and placed my scroll view as a subview. This…
6
votes
1 answer

How can I overlay a background color over an NSVisualEffectView and use vibrant controls?

I want to use NSVisualEffectView with dark vibrancy, but I find the effect too pale in some situations, so I'd like to darken the background. Here is an example app, using NSBox views to provide a darker background. We can see that the NSBox…
joerick
  • 16,078
  • 4
  • 53
  • 57
5
votes
0 answers

How to get the vibrant effect for a NSTextField/NSSearchField like Safari's address bar in Big Sur

I have a Mac app with a search field in its toolbar (actually a NSTextField, but I tried NSSearchField as well). My problem is that the text field background on Big Sur is just plain white, which makes it hard to recognize. Safari's location bar on…
Mark
  • 6,647
  • 1
  • 45
  • 88
5
votes
3 answers

How to prevent macOS from inserting an NSVisualEffectView into an NSScrollView automatically

I'm building a NSView hierarchy programmatically by putting a NSStackView into a NSScroller. I have done this before and my code is correct. The view hierarchy is what I expect until the first time through the runloop (or display) where macOS…
Frank R.
  • 2,328
  • 1
  • 24
  • 44
5
votes
1 answer

Opt-out borderless NSButton from NSVisualEffectView vibrancy

I have a NSVisualEffectView with vibrancy containing text fields (NSTextField or NSComboBox) and borderless buttons. The buttons are positioned over the text fields and I want to disable the vibrancy effect on the borderless buttons since they're…
beeb
  • 1,187
  • 11
  • 32
4
votes
0 answers

NSVisualEffectView on top of NSVisualEffectView

When placing a NSVisualEffectView with blending mode behind window, behind another NSVisualEffectView with blending mode within window, and rounding the corners of the NSVisualEffectView that is on top, the corners that are on top of the…
Aviv
  • 183
  • 1
  • 6
4
votes
0 answers

NSTextField above wrapped NSVisualEffectView looks blurry/bold

I use an NSVisualEffectView in my Cocoa app. My problem is that text in a text field above the visual effect view looks slightly bold/blurry if the visual effect view itself is wrapped in another NSView (see label #3 in the screenshot below). My…
Mark
  • 6,647
  • 1
  • 45
  • 88
1
2 3 4