1

With the OS X 10.10 SDK, NSPopover seems to default to including an NSVisualEffectView somewhere in its hierarchy. Trouble is, I can’t seem to find any way to manage the effect.

I’ve tried the Xcode View Debugger but that didn’t offer very much information:

View Debugger Screenshot

Are we expected to be able to tweak this vibrancy or just accept it and move on?

I wouldn't mind being able to tweak the effect or change the appearance of certain items in the (apparently enforced) dark mode.

magiclantern
  • 768
  • 5
  • 19

1 Answers1

1

It appears that you need to set the NSPopover's appearance property to an instance of NSAppearance.

There are a number of standard appearances including both light and dark vibrancy, along with a allowsVibrancy property for custom appearances.

While the documentation for the vibrance appearances says:

This should only be set on an NSVisualEffectView or one of its subviews.

The NSPopover documentation doesn't appear to have been updated (the comment for appearance still references the NSPopoverAppearance enum), so it is probably worth a shot.

asherkin
  • 377
  • 5
  • 9