gpt4 book ai didi

cocoa - OSX NSStatusBar 状态栏图标尺寸?

转载 作者:行者123 更新时间:2023-12-03 16:09:53 27 4
gpt4 key购买 nike

我找不到 OSX 中状态栏或菜单栏图标应具有的尺寸的文档或提示。我发现这样的图标对于普通显示器来说有 18x18 像素,但是对于视网膜显示器如何做到这一点?它是 36x36 吗?通常的命名约定 ...@2 在这种情况下有效吗?

苹果官方文档涵盖了所有其他图标尺寸的信息,但没有介绍状态栏图标。

最佳答案

来自文档:

When you create an icon to put inside a toolbar control in PDF format, OS X will automatically scale your icon for high-resolution display. You do not need to provide a high-resolution version.

没有@2X版本。

For freestanding icons in a toolbar, create inviting images that are easy to identify. Because freestanding toolbar icons do not need to fit within a toolbar control, you have a little more room to express them. As you design a freestanding icon for your toolbar, follow these guidelines:

Use a straight-on perspective. Make the outline sharp and clear. Use anti-aliasing. Use color judiciously to add meaning. Create icons for standard- and high-resolution displays. You need to supply two resources: 32x32 and 32x32@2x. See Table 5-1 for the corresponding canvas sizes. Use the PNG format.

For reference

关于cocoa - OSX NSStatusBar 状态栏图标尺寸?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13377919/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com