how to get window with semi-transparent blurred background

后端 未结 3 473
北海茫月
北海茫月 2021-02-09 06:30

I\'d like to get a window that has a semi-transparent blurred background, just like what the Terminal can do. See this video, about 30 sec in, to see what I mean: http://www.you

3条回答
  •  你的背包
    2021-02-09 07:16

    For those reading this in 2017 and using Swift 4 and wanting to change your BG Alpha you can add the following to your custom NSWindow class:

    self.backgroundColor = NSColor.black
    self.backgroundColor = NSColor.init(calibratedHue: 0, saturation: 0, brightness: 0, alpha: 0.2)
    

    p.s. I do not need the blur effect yet and when I do, I'll update the answer

提交回复
热议问题