NSWindow 纹理渐变填充怪异
嘿,我有一个带纹理的 NSWindow,我发现它的纹理方式有一些奇怪的行为。如果我在窗口中有一个 IKImageBrowserView,那么窗口的标题栏和底部栏中都有一个完整的从亮到暗的渐变,但是如果我隐藏 IKImageBrowserView 并显示我的 NSBox,则渐变从顶部开始亮,并在底部栏中以黑色结束。我认为截图可能更准确地描述问题。
或者,有没有办法将 NSTextField 和 NSProgressIndicator 放置在 ikimagebrowserview 之上?由于某种原因,当它们放置在 ikimagebrowserview 上方时,它们不可见。
Hey, I've got a textured NSWindow, and I'm seeing some strange behaviour with the way it gets textured. If I have an IKImageBrowserView in the window, then there is a full light to dark gradient in both the title bar and the bottom bar of the window, but if I hide the IKImageBrowserView and show my NSBox, then the gradient starts light in the top, and ends dark in the bottom bar. I think screenshots may describe the problem more accurately.
Alternatively, is there a way of placing an NSTextField and an NSProgressIndicator overtop of an ikimagebrowserview? They aren't visible when placed above the ikimagebrowserview for some reason.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了类似的问题,NSWindow 纹理/金属渐变不一致。
我的发现以及适用于上述问题的解决方案可以在以下帖子的回复中找到:
带有 NStextField 的 NSWindow 纹理背景
I experienced a similar issue with inconsistent NSWindow textured/metallic gradients.
My findings, and a solution which will work for the above issue may be found in the responses to the following post:
NSWindow textured background with NStextField