Cocoa 中的 iTunes 10 风格底部栏按钮

发布于 2024-12-14 23:55:41 字数 290 浏览 5 评论 0原文

类似于 iTunes 的底部栏按钮看起来像一些应用于 Lion 中图像模板的标准 NSButtonCell 样式:正常凹入,单击时凹入并带有蓝色突出显示:

Screenshot

然而,我找不到这样设置 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:

Screenshot

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

溺渁∝ 2024-12-21 23:55:41

在 Interface Builder 中添加 NSButton。然后给它一个图像(必须是模板),取消选择Bordered,将样式设置为Textured,将模式设置为Toggle

Add an NSButton in Interface Builder. Then give it an image (must a template), deselect Bordered, set style to Textured and mode to Toggle.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文