简体   繁体   English

在Adobe Air中更改任务栏中图标的背景颜色

[英]Change the background color of the icon in taskbar in adobe air

Is it possible to change the background color of the icon in taskbar on windows? 是否可以在Windows的任务栏中更改图标的背景颜色? I'm going to build a simple chat application using adobe air with html/javascript and want to use this feature as a notification for new incoming messages, like in facebook messenger app, for example (see image). 我将使用带有html / javascript的adobe air构建一个简单的聊天应用程序,并希望将此功能用作新传入消息的通知,例如在facebook Messenger应用程序中(参见图片)。

在此处输入图片说明

You can do several thing to notify the user via the NativeApplication , SystemTrayIcon and DockIcon classes. 您可以做一些事情来通过NativeApplicationSystemTrayIconDockIcon类通知用户。

On windows you can flash the application icon on the task bar and in OSX you can make the icon bounce to notify the user of a change / action required. 在Windows上,您可以刷新任务栏上的应用程序图标,而在OSX中,可以使该图标弹起以通知用户所需的更改/操作。

A summary of the methods used can be found on Adobe's site under Working with the dock and the system tray 可以在Adobe网站上的“ 使用扩展坞和系统托盘”下找到所使用方法的摘要。

Although these examples are in as3, they are relatively similar to the js classes which can be found in the AIR HTML API Reference 尽管这些示例位于as3中,但它们与AIR HTML API参考中可以找到的js类相对类似。

NativeApplication 本机应用程序

SystemTrayIcon 系统托盘图标

DockIcon DockIcon

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM