From 423799bfd79d3952485f79e856440760af35b0df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Soutad=C3=A9?= Date: Thu, 29 Jan 2015 21:19:29 +0100 Subject: [PATCH] Integrate icons in addons --- chrome_addon/background.js | 2 +- chrome_addon/gpass_icon.png | Bin 2125 -> 0 bytes chrome_addon/manifest.json | 5 ++++- firefox_addon/lib/main.js | 5 ++++- firefox_addon/package.json | 4 +++- 5 files changed, 12 insertions(+), 4 deletions(-) delete mode 100644 chrome_addon/gpass_icon.png diff --git a/chrome_addon/background.js b/chrome_addon/background.js index aff02cb..571dffe 100644 --- a/chrome_addon/background.js +++ b/chrome_addon/background.js @@ -7,7 +7,7 @@ chrome.runtime.onMessage.addListener( type: "basic", title : "gPass", 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(){}); diff --git a/chrome_addon/gpass_icon.png b/chrome_addon/gpass_icon.png deleted file mode 100644 index d78a7b3b8c5e443b1c60f6d99081ccd8a865d141..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2125 zcmV-T2(tHyP)e zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00*^6L_t(|+U;9yP*m3$e$Kh~ zvI~o_EP_$0g83j0m>BD1(l(k}of-|1nU1Ob$kH_821x}91IKt?9d zb31ty*Fx|OW`k%nJetPg^`=77#JaHtprC*+nGyi>dF5rVE~8X4!|an|uH=-R$Uz8f(lJgXIB^O%J!A-r@Bzxblv-au{&O-oLu>$zYxAvfSpb-FrkbV>`|09+b(}c}_O|^N=;Y7uh z03evq^L4e>RTf3G3U5zAcJ|PBRRtC-P{-{9hWrH3&>-ZWDvYhaFAH3}o}AT00#N;~ z^&#iJAH7!Q+EuVnQN$=21f(Q@h0oiv#)rQGKm)_>eY$vkSKy)QDr^7s=A2Ll06^6- z>-BZ3`?s8H7IG{T6a`?A2z5gGlMir3ul2q8$TtQv60!M&GXMbAm1yk9 zLG$G$w|US0;hprCR@|o*W@IuB0GtD00sw&skdnm|xt<;hbal$M(;tfVg9nVNxAz&l z0kkDD--H8j0t_s~0E*uQ7=t=1D4=#O0W)Ov6dq>4 zkS}2I?5^UrI{-q!9P0yyg^n0v-FhGhMo0>1UN7060Vah201G<7_*U54M^wJoc&qV@IB#zN3=A`XBQy(yx&V)O@}>#w z_?3S6H#_xblAT}D0Wb_Qg41wN2P8swA{3znIDiYS65C(U-@qh9@&O2h84v;>JRY-% zmnVgV9LK6Ne!ad#d&Kqt1avtH0ELU;fhd{=5P-YxQnDX^()m`R=RKZEFC0zR>_E!4imPg$I3v<|c6#z@W_mpwSE%Q3A1^2atr>*(qCX zuK|OD(g*{9xKrHwU!Owd>#0DxHBarmQd>S#DEPup4qfiXT{#DmaiK0pbIU`K~+cxS)Snat$W z$p%2-0xU?0NE)C3sI9YbzDXRYIc~iSz-xN|Xp|3-!%c0h4^RR8?U;p{Cf=VYyQj0T!hV3INNNsQBU5)PH{e z3C9)y?rFh*fIhMfQg{}K&;|_d67h}F5CWA)&5r8h#?MZ^pFAr(8Ew!q&9DXp0DO5p!@@-^ zu%ax_0W`Nr^Of!TmgALHqun*Y*W4sX8!^!`1}t8zBHAmp{R4#WJUZ~)Uyhg+m?n|8 zbC;{tCq1OccqLvZ5B2IMOyh7p{-kqz zYloYx2!Dup?YFKPFyvsm$Fk+h_fDP8BoW-aMIPE)k$xG#JlrTTXD%;!_wO0~KIx%D zM>D(t3UQ;w-S?;~%67XBdpztO+`!?)Ow7bg{J-LVb~4s|9m$*800000NkvXXu0mjf Dp$XKG diff --git a/chrome_addon/manifest.json b/chrome_addon/manifest.json index 62e78de..033b728 100644 --- a/chrome_addon/manifest.json +++ b/chrome_addon/manifest.json @@ -4,7 +4,10 @@ "name": "gpass", "version": "0.6", "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": [ { "matches": ["https://*/*", "http://*/*"], diff --git a/firefox_addon/lib/main.js b/firefox_addon/lib/main.js index c7a77f3..c757a97 100644 --- a/firefox_addon/lib/main.js +++ b/firefox_addon/lib/main.js @@ -19,11 +19,12 @@ var {Cc, Ci} = require("chrome"); var notifications = require("sdk/notifications"); +var self = require("sdk/self"); +var prefSet = require("sdk/simple-prefs"); var pkdbf2 = require("pkdbf2").pkdbf2; var aes = require("jsaes").aes; var parseURI = require("parseuri").parseURI; -var prefSet = require("sdk/simple-prefs"); var DEBUG = false; var pkdbf2_level = getPref("pkdbf2_level"); var protocol_version = 3; @@ -56,10 +57,12 @@ function debug(s) function notify(text, data) { + var icon = self.data.url("gpass_icon_64.png"); notifications.notify({ title: "gPass", text: text, data: data, + iconUrl: icon, }); } diff --git a/firefox_addon/package.json b/firefox_addon/package.json index f225eb8..c6d57b8 100644 --- a/firefox_addon/package.json +++ b/firefox_addon/package.json @@ -5,7 +5,9 @@ "description": "gPass : global password manager", "author": "Grégory Soutadé", "license": "GNU GPL v3", - "version": "0.6", + "homepage" : "http://indefero.soutade.fr/p/gpass", + "icon" : "data/gpass_icon_64.png", + "version": "0.6", "preferences": [ { "name": "account_url",