summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorRimas Kudelis <rimas@datalogistiikka.fi>2013-07-12 22:28:34 +0300
committerRimas Kudelis <rimas@datalogistiikka.fi>2013-07-12 22:28:34 +0300
commit67a52526133c68443de451964e5da75c1be61c57 (patch)
treeeb8548c0e997d725f69fd7e1b6e6cc09e305f3cd /plugins
parent471157982b019f4170ebb092aecbab5411fd4278 (diff)
Extend basic notification to add a star icon overlay if we're in IE Pinned site mode (Win7+).
The star icon is taken from Xiao Icon set (http://delacro.deviantart.com/art/Xiao-Icon-84772282).
Diffstat (limited to 'plugins')
-rw-r--r--plugins/newmail_notifier/newmail_notifier.js14
-rw-r--r--plugins/newmail_notifier/overlay.icobin0 -> 1150 bytes
2 files changed, 14 insertions, 0 deletions
diff --git a/plugins/newmail_notifier/newmail_notifier.js b/plugins/newmail_notifier/newmail_notifier.js
index b2d7cf497..c398424b6 100644
--- a/plugins/newmail_notifier/newmail_notifier.js
+++ b/plugins/newmail_notifier/newmail_notifier.js
@@ -34,6 +34,13 @@ function newmail_notifier_stop(prop)
$('<link rel="shortcut icon" href="'+rcmail.env.favicon_href+'"/>').replaceAll('link[rel="shortcut icon"]');
rcmail.env.favicon_href = null;
}
+
+ // Remove IE icon overlay if we're pinned to Taskbar
+ try {
+ if(window.external.msIsSiteMode()) {
+ window.external.msSiteModeClearIconOverlay();
+ }
+ } catch(e) {}
}
// Basic notification: window.focus and favicon change
@@ -49,6 +56,13 @@ function newmail_notifier_basic()
rcmail.env.favicon_href = oldlink.attr('href');
link.replaceAll(oldlink);
+
+ // Add IE icon overlay if we're pinned to Taskbar
+ try {
+ if (window.external.msIsSiteMode()) {
+ window.external.msSiteModeSetIconOverlay('plugins/newmail_notifier/overlay.ico', rcmail.gettext('title', 'newmail_notifier'));
+ }
+ } catch(e) {}
}
// Sound notification
diff --git a/plugins/newmail_notifier/overlay.ico b/plugins/newmail_notifier/overlay.ico
new file mode 100644
index 000000000..17eb61a05
--- /dev/null
+++ b/plugins/newmail_notifier/overlay.ico
Binary files differ