Adobe AIR 中的主题

发布于 2024-07-13 14:01:05 字数 79 浏览 7 评论 0原文

对 AIR 应用程序进行皮肤/主题化的最佳方式是什么? 例如,我想使用深色/黑色主题(类似于 Tour de Flex)而不是默认的灰色主题。

What is the best way to skin/theme an AIR application. For example, I want to use a dark/blackish theme instead (similar to Tour de Flex) instead of the default gray one.

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

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

发布评论

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

评论(3

憧憬巴黎街头的黎明 2024-07-20 14:01:05

ScaleNine 主题是一个很好的起点,找到一个类似于您想要的主题,将其插入您的应用程序,然后逐渐用您自己的主题替换颜色、图像和控件。

http://www.scalenine.com/

The ScaleNine themes are a good place to start, find one that is sort of like what you want, plug it into your app, and gradually replace the colors, images, and controls with your own.

http://www.scalenine.com/

魂ガ小子 2024-07-20 14:01:05

我也刚刚开始使用 AIR,但如果您使用 Flex,请查看 “一周灵活”视频系列。 有几个视频介绍了如何创建自定义 MXML 组件和项目渲染器,它们可以有效地让您为应用程序换肤。

您还可以使用 CSS 来设计您的应用程序。

I'm only just getting started in AIR as well, but if you're using Flex check out the Flex in a Week video series. There are several videos that cover creating custom MXML components and item renderers, which effectively let you skin your application.

You can also use CSS to style your app.

暮凉 2024-07-20 14:01:05

首先,您需要将air应用程序属性文件中的系统镶边属性设置为none

<initialWindow>
...
<systemChrome>none</systemChrome>
...
</initialWindow>

如果您的 Air 应用程序中的主文件名为 Main.mxml,那么您的应用程序属性文件将名为 Main-app.xml。 该文件并不难找到,它应该与 Main.mxml 文件位于同一位置。

通过将此属性设置为 none,您表示您不希望您的 Air 应用程序窗口采用运行该应用程序的操作系统窗口的样式。

由于此属性设置为 none,air 应用程序的 chrome 必须来自 Main.mxml 文件,该文件应该是 WindowedApplication

使用该应用程序的 titleBarBackgroundSkin 属性WindowedApplication 设置air应用程序的皮肤。 titleBarBackgroundSkin 默认为“mx.skins.halo.ApplicationTitleBarBackgroundSkin”

First you need to set the system chrome property in the air application properties file to none.

<initialWindow>
...
<systemChrome>none</systemChrome>
...
</initialWindow>

If the main file in your air app is named Main.mxml, then your application properties files will be named Main-app.xml. This file is not hard to find, it should be in the same location as the Main.mxml file.

By setting this property to none you are saying that you do not wish your air app window to take the style of the OS windows in which the app is running.

Since this property is set to none, the chrome for the air app will have to come from your Main.mxml file, which should be a WindowedApplication

Use the titleBarBackgroundSkin attriubute of the WindowedApplication To set the skin for the air app. titleBarBackgroundSkin defaults to "mx.skins.halo.ApplicationTitleBarBackgroundSkin"

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