Skip to content

Commit 3e7447d

Browse files
Merge pull request #4 from ekonstantinidis/get-notifications
Get Notifications from GitHub API
2 parents ab447a0 + f0a488f commit 3e7447d

24 files changed

+5745
-25
lines changed

Gruntfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ module.exports = function(grunt) {
1818
files: [
1919
{expand: true, cwd: "src/fonts/", src: '**', dest: 'build/fonts/'},
2020
{expand: true, cwd: "node_modules/bootstrap/fonts/", src: '**', dest: 'build/fonts/'},
21-
{expand: true, cwd: "node_modules/font-awesome/fonts/", src: '**', dest: 'build/fonts/'}
21+
{expand: true, cwd: "node_modules/font-awesome/fonts/", src: '**', dest: 'build/fonts/'},
22+
{expand: true, cwd: "node_modules/octicons/octicons/", src: '*.eot', dest: 'build/fonts/'},
23+
{expand: true, cwd: "node_modules/octicons/octicons/", src: 'octicons.woff', dest: 'build/fonts/'},
24+
{expand: true, cwd: "node_modules/octicons/octicons/", src: '*.ttf', dest: 'build/fonts/'}
2225
]
2326
}
2427
},

main.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ var Tray = require('tray');
99
var BrowserWindow = require('browser-window');
1010

1111
var iconPlain = path.join('./images/', 'github-tray-plain.png');
12+
var iconGreen = path.join('./images/', 'github-tray-green.png');
1213

1314
app.on('ready', function(){
1415
appIcon = new Tray(iconPlain);
@@ -62,6 +63,15 @@ app.on('ready', function(){
6263
appIcon.emit('after-hide');
6364
}
6465

66+
ipc.on('update-icon', function(event, arg) {
67+
var icon;
68+
if (arg == "IconGreen") {
69+
appIcon.setImage(iconGreen);
70+
} else {
71+
appIcon.setImage(iconPlain);
72+
}
73+
});
74+
6575
app.dock.hide();
6676
appIcon.setToolTip('Github Notifications on your menu bar.');
6777
});
19.1 KB
Binary file not shown.

src/fonts/OpenSans-Light-webfont.svg

Lines changed: 1831 additions & 0 deletions
Loading
36.5 KB
Binary file not shown.
21.7 KB
Binary file not shown.
19.4 KB
Binary file not shown.

src/fonts/OpenSans-Regular-webfont.svg

Lines changed: 1831 additions & 0 deletions
Loading
37.3 KB
Binary file not shown.
22.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)