From e7d07a5729db2d64496ec97bcf85ea1bc43131d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sat, 23 Feb 2019 22:33:46 +0100 Subject: [PATCH] better manifest --- icon.svg => icon-dark.svg | 30 +++++++-------- icon-light.svg | 79 +++++++++++++++++++++++++++++++++++++++ manifest.json | 50 +++++++++++++------------ 3 files changed, 120 insertions(+), 39 deletions(-) rename icon.svg => icon-dark.svg (66%) create mode 100644 icon-light.svg diff --git a/icon.svg b/icon-dark.svg similarity index 66% rename from icon.svg rename to icon-dark.svg index 9e5a446..22f997e 100644 --- a/icon.svg +++ b/icon-dark.svg @@ -7,12 +7,12 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="42" - height="42" - viewBox="0 0 112 112" + width="48" + height="48" + viewBox="0 0 128 128" version="1.1" id="svg4" - sodipodi:docname="icon.svg" + sodipodi:docname="icon-dark.svg" inkscape:version="0.92.4 5da689c313, 2019-01-14"> @@ -41,9 +41,9 @@ inkscape:window-height="1139" id="namedview6" showgrid="true" - inkscape:zoom="6.9532167" - inkscape:cx="-11.076832" - inkscape:cy="2.0520977" + inkscape:zoom="9.8333334" + inkscape:cx="18.393548" + inkscape:cy="12.10345" inkscape:window-x="0" inkscape:window-y="30" inkscape:window-maximized="1" @@ -55,24 +55,24 @@ + originx="-0.8372101" + originy="-20.86645" /> diff --git a/icon-light.svg b/icon-light.svg new file mode 100644 index 0000000..86b2224 --- /dev/null +++ b/icon-light.svg @@ -0,0 +1,79 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/manifest.json b/manifest.json index 1a6d9da..0d7aad2 100644 --- a/manifest.json +++ b/manifest.json @@ -1,29 +1,31 @@ { - "applications":{ - "gecko":{ - "id":"@save_link_to_file", - "strict_min_version":"64.0" - } - }, - "manifest_version":2, - "author": "Ondřej Hruška", - "name":"Save Link to File", - "version":"0.2", - "description":"Saves the current page as a HTML file with auto-redirect. It's like a bookmark you can store anywhere on your disk.", - "icons":{ - "48":"icon.svg", - "128":"icon.svg" - }, - "background":{ - "scripts":["background.js"] - }, - "permissions":[ + "manifest_version":2, + "author": "Ondřej Hruška", + "name":"Save Link to File", + "version":"0.3", + "description":"Saves the current page as a HTML file with auto-redirect. It's like a bookmark you can store anywhere on your disk.", + "icons":{ + "48":"icon-dark.svg", + "128":"icon-dark.svg" + }, + "background":{ + "scripts":["background.js"] + }, + "permissions":[ "activeTab", "downloads" - ], - "browser_action": { - "browser_style": true, - "default_icon": "icon.svg", - "default_title": "Save Link" + ], + "browser_action": { + "default_title": "Save Link", + "default_icon": "icon-dark.svg", + "theme_icons": [{ + "light": "icon-light.svg", + "dark": "icon-dark.svg", + "size": 32 + },{ + "light": "icon-light.svg", + "dark": "icon-dark.svg", + "size": 16 + }] } }