Commit graph

17 commits

Author SHA1 Message Date
Magnus Hauge Bakke
570f293399 Update app unread badge to dot instead of punctuation 2016-04-06 09:15:21 +02:00
Tor Hveem
cf255756ae use new global to check for electron 2016-04-03 13:52:35 +02:00
Magnus Hauge Bakke
3ad7ad203b Add comments to electron app badge functions 2016-04-02 10:29:06 +02:00
Magnus Hauge Bakke
14d8f73532 Electron: Set app badge in os x (darwin) 2016-04-01 21:50:34 +02:00
Tor Hveem
c3aa336183 Disable serviceWorker in electron process 2016-04-01 14:04:31 +02:00
Kevin López Brante
5c71423eed Enable the use of UWP (Windows 10) toasts 2016-01-26 16:07:16 -03:00
Lorenz Hübschle-Schneider
d06219102c Merge pull request #718 from torhve/serviceworker
Implement click handler for the notification
2015-12-22 16:26:08 +01:00
Lorenz Hübschle-Schneider
d8a1beb4db Fix missing argument in notification showing 2015-12-22 15:49:09 +01:00
Tor Hveem
1565c0e72d less vibrations 2015-12-22 14:03:30 +01:00
Tor Hveem
9985e91a69 use service workers for notifications
If Service Workers are available use them to display notifications
instead of the old way of creating notifications directly.

This has the side effect that it works nicely on chrome on android which
the old method does not.

This also paves the way to set up GCM for push notification in the
future which can give us push notifications without having the app running.

This patch can be improved in the future to get existing notifications
and change the message instead of just adding more and more
notifications.

See: ServiceWorkerRegistration.getNotifications() and
ServiceWorkerRegistration.update() from
https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration
2015-12-20 15:10:44 +01:00
Lorenz Hübschle-Schneider
ceceac78a2 Use buffer localvars instead of regex hackery
Fixes #589
2015-12-06 13:53:57 +01:00
Johan Stenehall
5643df2292 Add notification and unread count to topbar
Conflicts:
	css/glowingbear.css
2015-03-24 23:27:29 +01:00
Lorenz Hübschle-Schneider
be6e356363 Settings module 2015-02-04 19:56:56 +01:00
Tor Hveem
63c7e10832 Merge pull request #496 from glowing-bear/colourise-title
Parse colours in buffer title
2015-01-13 13:54:52 +01:00
Lorenz Hübschle-Schneider
d709c8fd93 Cancel all outstanding notifications when disconnecting / navigating away
Fixes #296
2015-01-03 18:46:36 +01:00
Lorenz Hübschle-Schneider
1d4caa91cd Parse colours in buffer title
Requires a WeeChat version including 013165209a
i.e., WeeChat 1.1 or a November 2014 nightly (or later)
(for previous versions, see https://github.com/weechat/weechat/issues/237)

Fixes #308
2015-01-03 18:18:20 +01:00
Lorenz Hübschle-Schneider
21f8f47efe Split things up into logical blocks 2014-08-31 15:57:36 +01:00