简体   繁体   English

甚至有可能使 NSPopver 完全透明吗?

[英]Is it even possible to make NSPopver fully transparent?

I tried my hands on changing the color of NSPopover, I am able to change to it all desired color except transparent.我试着改变 NSPopover 的颜色,我可以改变它所有想要的颜色,除了透明。

As, it is known that NSPopover is by default semi transparent.众所周知,NSPopover 默认是半透明的。 I tried changing the NSWindow color directly, by Layer as well, I also tried setting the NSView's color to transparent ie NSColor.Clear but no luck.我尝试直接通过图层更改 NSWindow 颜色,我还尝试将 NSView 的颜色设置为透明,即 NSColor.Clear 但没有运气。

So the question is - Is this possible to change the background color of NSPopover to transparent?所以问题是 - 这是否可以将 NSPopover 的背景颜色更改为透明?

No this is (sadly) not possible.不,这是(可悲的)不可能的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM