|
|
|
|
@ -92,6 +92,8 @@ public class SystrayServiceJdicImpl
|
|
|
|
|
|
|
|
|
|
private ImageIcon logoIconFFC;
|
|
|
|
|
|
|
|
|
|
private ImageIcon logoIconDND;
|
|
|
|
|
|
|
|
|
|
private ImageIcon logoIconWhite;
|
|
|
|
|
|
|
|
|
|
private ImageIcon envelopeIcon;
|
|
|
|
|
@ -109,6 +111,8 @@ public class SystrayServiceJdicImpl
|
|
|
|
|
|
|
|
|
|
private URL dockIconFFC;
|
|
|
|
|
|
|
|
|
|
private URL dockIconDND;
|
|
|
|
|
|
|
|
|
|
private Image originalDockImage = null;
|
|
|
|
|
|
|
|
|
|
private boolean initialized = false;
|
|
|
|
|
@ -162,6 +166,8 @@ private void initSystray()
|
|
|
|
|
"service.systray.TRAY_ICON_WINDOWS_AWAY");
|
|
|
|
|
logoIconFFC = Resources.getImage(
|
|
|
|
|
"service.systray.TRAY_ICON_WINDOWS_FFC");
|
|
|
|
|
logoIconDND = Resources.getImage(
|
|
|
|
|
"service.systray.TRAY_ICON_WINDOWS_DND");
|
|
|
|
|
envelopeIcon = Resources.getImage(
|
|
|
|
|
"service.systray.MESSAGE_ICON_WINDOWS");
|
|
|
|
|
} // If we're running under MacOSX, we use a special black and
|
|
|
|
|
@ -183,6 +189,7 @@ else if (isMac)
|
|
|
|
|
"service.systray.TRAY_ICON_OFFLINE");
|
|
|
|
|
logoIconAway = Resources.getImage("service.systray.TRAY_ICON_AWAY");
|
|
|
|
|
logoIconFFC = Resources.getImage("service.systray.TRAY_ICON_FFC");
|
|
|
|
|
logoIconDND = Resources.getImage("service.systray.TRAY_ICON_DND");
|
|
|
|
|
envelopeIcon = Resources.getImage("service.systray.MESSAGE_ICON");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -208,7 +215,10 @@ else if (isMac)
|
|
|
|
|
"service.systray.DOCK_ICON_OFFLINE");
|
|
|
|
|
dockIconAway = Resources.getImageURL(
|
|
|
|
|
"service.systray.DOCK_ICON_AWAY");
|
|
|
|
|
dockIconFFC = Resources.getImageURL("service.systray.DOCK_ICON_FFC");
|
|
|
|
|
dockIconFFC =
|
|
|
|
|
Resources.getImageURL("service.systray.DOCK_ICON_FFC");
|
|
|
|
|
dockIconDND =
|
|
|
|
|
Resources.getImageURL("service.systray.DOCK_ICON_DND");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//Show/hide the contact list when user clicks on the systray.
|
|
|
|
|
@ -478,6 +488,11 @@ else if (imageType == SystrayService.SC_IMG_FFC_TYPE)
|
|
|
|
|
if (!isMac)
|
|
|
|
|
toChangeSystrayIcon = logoIconFFC;
|
|
|
|
|
}
|
|
|
|
|
else if (imageType == SystrayService.SC_IMG_DND_TYPE)
|
|
|
|
|
{
|
|
|
|
|
if (!isMac)
|
|
|
|
|
toChangeSystrayIcon = logoIconDND;
|
|
|
|
|
}
|
|
|
|
|
else if (imageType == SystrayService.ENVELOPE_IMG_TYPE)
|
|
|
|
|
{
|
|
|
|
|
toChangeSystrayIcon
|
|
|
|
|
@ -509,6 +524,9 @@ else if (imageType == SystrayService.ENVELOPE_IMG_TYPE)
|
|
|
|
|
case SystrayService.SC_IMG_FFC_TYPE:
|
|
|
|
|
toChangeDockIcon = dockIconFFC;
|
|
|
|
|
break;
|
|
|
|
|
case SystrayService.SC_IMG_DND_TYPE:
|
|
|
|
|
toChangeDockIcon = dockIconDND;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|