如何为Safari应用程序扩展的背景设置所需的颜色
不要责骂我愚蠢的问题,但是我需要您的帮助,我谷歌搜索了多少 - 我找不到任何东西。我不明白如何将主SafariextensionViewController的背景更改为我想要的RGB?
don't scold me for dumb questions, but I need your help, how much I googled - I could not find anything. I don't understand how to change the background of the main SafariExtensionViewController to the rgb I want?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它是基本的,只需确保您 /代码> ON。
例如:
如果您打算在
updateLayer()
内更改nsview中的颜色,则需要将wentupDateLayer
上方打开。另外,您可以不用这样的层来走:
It is elementary, just make sure you turn
wantsLayer
on.For example:
If you are planning to change the color in a NSView inside
updateLayer()
you'll need to turnwantsUpdateLayer
on as well.Alternatively you could go without layers like this: