Skip to content

Commit

Permalink
delete travis and update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Toinane committed Mar 2, 2017
1 parent 398845b commit a3d56a4
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 151 deletions.
136 changes: 0 additions & 136 deletions .travis.yml

This file was deleted.

File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ let win, tray;

function createWindow(){

var robot = require("robotjs");
//var robot = require("robotjs");

// Get mouse position.
var mouse = robot.getMousePos();
//var mouse = robot.getMousePos();

// Get pixel color in hex format.
var hex = robot.getPixelColor(mouse.x, mouse.y);
console.log("#" + hex + " at x:" + mouse.x + " y:" + mouse.y);
//var hex = robot.getPixelColor(mouse.x, mouse.y);
//console.log("#" + hex + " at x:" + mouse.x + " y:" + mouse.y);

/*app.setUserTasks([
{
program: __dirname+'/main.js',
Expand Down
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@
"main": "main.js",
"scripts": {
"start": "electron .",
"text": "xvfb-maybe electron-mocha main.js",
"pack": "build --dir",
"dist": "build"
},
"build":{
"appId": "toinane.colorpicker",
"mac": {
"category": "toinane.app.design"
},
"win": {
"iconUrl": "logo.png"
}
},
"build": {
"appId": "toinane.colorpicker",
"mac": {
"category": "toinane.app.design"
},
"win": {
"iconUrl": "logo.png"
}
},
"repository": "https://github.com/toinane/colorpicker",
"keywords": [
"ColorPicker",
Expand All @@ -26,7 +27,7 @@
"crea-that"
],
"devDependencies": {
"electron": "^1.5.0"
"electron": "^1.6.1"
},
"author": "Toinane",
"homepage": "https://toinane.crea-th.at",
Expand Down

0 comments on commit a3d56a4

Please sign in to comment.