mac 在其他平台上的外观和感觉?

发布于 2024-08-12 07:57:19 字数 126 浏览 2 评论 0原文

我只是好奇是否有一个 GUI 框架可以让你在其他平台上使用 mac 的外观和感觉。想必使用本机 API 的框架不会有帮助(例如 wxwidgets)。 qt 部分使用本机 API 来实现 mac 的外观和感觉,因此这没有用。 摇摆怎么样?

I'm just curious whether there is a gui framework that alloys you to use a mac look n feel on other platforms. presumably frameworks that use native APIs wouldn't be helpful (eg wxwidgets).
qt uses native API partially for mac look n feel, so that isn't useful.
what about swing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(5

相守太难 2024-08-19 07:57:19

一般来说,不要这样做。不同的平台有不同的约定,您的软件应该遵循其平台的约定,以尽量减少用户的认知负担。

我猜,除非你是唯一希望使用它的人。

In general, don't do this. Different platforms have different conventions, and your software should follow its platform's conventions to minimize the cognitive load of the user.

Unless, I guess, you're the only person who you ever expect to use it.

天生の放荡 2024-08-19 07:57:19

从法律上讲,您无法在另一个平台上创建 Mac 的外观和感觉。苹果拥有其版权。

然而,Quaqua Java 外观 实现了具有该外观的 Java 小部件。如果您有充分的理由以非商业方式使用它,这可能是一个解决方案。

Legally, you can't create the Mac look and feel on another platform. Apple owns the copyrights to it.

However, the Quaqua Java Look-and-feel implements Java widgets that have that look-and-feel. If you have a good reason to use it in a non-commercial way, it may be a solution.

菩提树下叶撕阳。 2024-08-19 07:57:19

每个操作系统和桌面管理器都有不同的实现 GUI 元素的方法。如果您希望使用本机控件,则尝试将与 OSX 完全相同的应用程序移植到这些平台上将会很困难。其次,正如格雷德所说,每个人都有自己的做事方式,并且可能会因显示或丢失不寻常的图标、符号和控件而导致用户问题。

不过,如果您想尝试此操作,FireFox 等多平台 Web 浏览器之一可能可以让您了解如何在平台上保持相同的总体外观和感觉。

祝你好运,希望这对一些人有帮助。

Every operating system and desktop manager has a different way of implementing GUI elements. Trying to port an application that will look exactly the same as OSX onto these platforms will be difficult if you're looking to use the native controls. Secondly, like Gred stated, each one will have their own way of doing things and could cause user issues by having unusal icons, symbols and controls displayed or missing.

Though if you would like to attempt this, one of the multi-platform web browsers such as FireFox might be able to give you some idea of how to carry over the same general look and feel over the platforms.

Good luck, and hope this helps some.

你げ笑在眉眼 2024-08-19 07:57:19

要回答最后一个问题,在非 Mac 平台上,Swing 并不具有 Mac 外观和感觉。这也适用于其他特定于平台的外观元素。

虽然不是最好的解决方案,但对于 Java 来说, Nimbus L&F 是一个不错的选择...但由于它现在包含在 Java 中(从 6u10 开始),因此不再单独提供。

To answer the last question, Swing does not ship with the Mac look and feel on platforms that aren't Mac-based. This also applied to the other platform-specific look and feel elements.

While not the greatest solution, for Java, the Nimbus L&F is a good alternative... but since it's now included in Java (as of 6u10), it's not available separately any more.

梦言归人 2024-08-19 07:57:19

您可以在 Qt [可能还有 GTK*] 中实现自己的样式,以尝试看起来相同(请参阅 Q风格)。然而,这可能不值得花费时间和精力,并且会惹恼一些用户。有一些 Windows 主题试图模仿外观。我知道新版本的平行线附带了类似的东西,但它看起来很有趣,因为边距、间距、字体等都是完全错误的。

You can implement your own style in Qt [and probably GTK*] to attempt to look the same (see QStyle). However it probably isn't worth the time and effort and will piss off some users. There are some windows themes that attempt to mimic the look. I know the new version of parallels ships with something like that, but it looks rather funny as the margins, spacing, font, etc is completely wrong.

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