Integrate icons in addons

This commit is contained in:
Grégory Soutadé 2015-01-29 21:19:29 +01:00
parent 6a86ab989c
commit 423799bfd7
5 changed files with 12 additions and 4 deletions

View File

@ -7,7 +7,7 @@ chrome.runtime.onMessage.addListener(
type: "basic", type: "basic",
title : "gPass", title : "gPass",
message : request.options.message, message : request.options.message,
iconUrl:chrome.extension.getURL("gpass_icon.png") iconUrl:chrome.extension.getURL("gpass_icon_64.png")
}; };
chrome.notifications.create("gPass", options, function(){}); chrome.notifications.create("gPass", options, function(){});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -4,7 +4,10 @@
"name": "gpass", "name": "gpass",
"version": "0.6", "version": "0.6",
"description": "gPass : global password manager", "description": "gPass : global password manager",
"icons" : {"16":"gpass_icon_16.png", "32":"gpass_icon_32.png", "64":"gpass_icon_64.png", "128":"gpass_icon_128.png"},
"author" : "Grégory Soutadé",
"homepage_url" : "http://indefero.soutade.fr/p/gpass",
"content_scripts": [ "content_scripts": [
{ {
"matches": ["https://*/*", "http://*/*"], "matches": ["https://*/*", "http://*/*"],

View File

@ -19,11 +19,12 @@
var {Cc, Ci} = require("chrome"); var {Cc, Ci} = require("chrome");
var notifications = require("sdk/notifications"); var notifications = require("sdk/notifications");
var self = require("sdk/self");
var prefSet = require("sdk/simple-prefs");
var pkdbf2 = require("pkdbf2").pkdbf2; var pkdbf2 = require("pkdbf2").pkdbf2;
var aes = require("jsaes").aes; var aes = require("jsaes").aes;
var parseURI = require("parseuri").parseURI; var parseURI = require("parseuri").parseURI;
var prefSet = require("sdk/simple-prefs");
var DEBUG = false; var DEBUG = false;
var pkdbf2_level = getPref("pkdbf2_level"); var pkdbf2_level = getPref("pkdbf2_level");
var protocol_version = 3; var protocol_version = 3;
@ -56,10 +57,12 @@ function debug(s)
function notify(text, data) function notify(text, data)
{ {
var icon = self.data.url("gpass_icon_64.png");
notifications.notify({ notifications.notify({
title: "gPass", title: "gPass",
text: text, text: text,
data: data, data: data,
iconUrl: icon,
}); });
} }

View File

@ -5,7 +5,9 @@
"description": "gPass : global password manager", "description": "gPass : global password manager",
"author": "Grégory Soutadé", "author": "Grégory Soutadé",
"license": "GNU GPL v3", "license": "GNU GPL v3",
"version": "0.6", "homepage" : "http://indefero.soutade.fr/p/gpass",
"icon" : "data/gpass_icon_64.png",
"version": "0.6",
"preferences": [ "preferences": [
{ {
"name": "account_url", "name": "account_url",