Cocoa 中的 iTunes 10 风格底部栏按钮
类似于 iTunes 的底部栏按钮看起来像一些应用于 Lion 中图像模板的标准 NSButtonCell 样式:正常凹入,单击时凹入并带有蓝色突出显示:
然而,我找不到这样设置 NSButton 的方法。
缺少一些明显的东西吗?或者 Photoshop + PNG 是正确的选择吗?
iTunes-like bottom bar buttons seem like some of the standard NSButtonCell styles applied to image templates in Lion: recessed normally, recessed with blue highlight when clicked:
And yet, I can't find a way to set up NSButton that way.
Missing something obvious? Or is Photoshop + PNG the way to go here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Interface Builder 中添加 NSButton。然后给它一个图像(必须是模板),取消选择
Bordered
,将样式设置为Textured
,将模式设置为Toggle
。Add an NSButton in Interface Builder. Then give it an image (must a template), deselect
Bordered
, set style toTextured
and mode toToggle
.