nsvisualeffectview

Make Title Bar and View Controller seamless with Dark Transparency

喜欢而已 提交于 2019-11-30 23:49:51
Hi so iv been looking all over the internet and have found all kinds of useful information on this topic but none seems to be working if trying to get something like this where the title bar and the rest of the window blend. From the internet the code iv got so far is in my viewDidLoad() self.view.window?.appearance = NSAppearance(named: NSAppearanceNameVibrantDark) self.view.window?.styleMask = (self.view.window?.styleMask)! | NSFullSizeContentViewWindowMask self.view.window?.titlebarAppearsTransparent = true self.view.window?.movableByWindowBackground = true but that isnt doing anything. Im

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

╄→尐↘猪︶ㄣ 提交于 2019-11-30 03:54:49
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, see the Desktop row in the image below. How can I replicate this behaviour? Do I need to use the delegate methods to specify the table row view, -outlineView:rowViewForItem: and attempt custom drawing myself or is there a more straight forward approach? If you make a standard source list UI in Xcode the default highlighting is remain the standard blue

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

自闭症网瘾萝莉.ら 提交于 2019-11-27 18:01:48
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. Here's the code of my subclass to make the content view round: - (void)setContentView:(NSView *)aView { aView.wantsLayer = YES; aView.layer.frame = aView.frame; aView.layer.cornerRadius = 14.0; aView.layer.masksToBounds = YES; [super setContentView:aView]; } And here's the outcome (as you can see, the corners are grainy, OS X's are way smoother): Any

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

霸气de小男生 提交于 2019-11-26 19:12:33
问题 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. Here's the code of my subclass to make the content view round: - (void)setContentView:(NSView *)aView { aView.wantsLayer = YES; aView.layer.frame = aView.frame; aView.layer.cornerRadius = 14.0; aView.layer.masksToBounds = YES; [super setContentView