From 00e050daa521421fc8af108cbfa045a1ff122152 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 26 Sep 2018 09:01:25 +0000 Subject: [PATCH] provide light and dark icon variants with standard colors as per https://design.firefox.com/photon/visuals/iconography.html#color --- Makefile | 4 +- icons/icedeb-addon-dark.svg | 84 ++++++++++++ icons/icedeb-addon-light.svg | 244 +++++++++++++++++++++++++++++++++++ icons/icedeb-addon.svg | 190 --------------------------- manifest.json | 18 ++- 5 files changed, 346 insertions(+), 194 deletions(-) create mode 100644 icons/icedeb-addon-dark.svg create mode 100644 icons/icedeb-addon-light.svg delete mode 100644 icons/icedeb-addon.svg diff --git a/Makefile b/Makefile index 551c44a..d507a7b 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,9 @@ PKG := icedeb ALL_FILES := README TODO Changes manifest.json \ icedeb.js icedeb.css icedeb.html icedeb-content.js \ - $(shell find res -type f) icons/openlogo-nd.svg icons/icedeb-addon.svg + $(shell find res -type f) \ + icons/openlogo-nd.svg \ + icons/icedeb-addon-light.svg icons/icedeb-addon-dark.svg all: $(PKG).xpi $(PKG).xpi: $(ALL_FILES) diff --git a/icons/icedeb-addon-dark.svg b/icons/icedeb-addon-dark.svg new file mode 100644 index 0000000..19dce0d --- /dev/null +++ b/icons/icedeb-addon-dark.svg @@ -0,0 +1,84 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/icons/icedeb-addon-light.svg b/icons/icedeb-addon-light.svg new file mode 100644 index 0000000..c1f7946 --- /dev/null +++ b/icons/icedeb-addon-light.svg @@ -0,0 +1,244 @@ + + + +image/svg+xml + + \ No newline at end of file diff --git a/icons/icedeb-addon.svg b/icons/icedeb-addon.svg deleted file mode 100644 index 0dfc306..0000000 --- a/icons/icedeb-addon.svg +++ /dev/null @@ -1,190 +0,0 @@ - - - -image/svg+xml \ No newline at end of file diff --git a/manifest.json b/manifest.json index 20579e1..7dc85f8 100644 --- a/manifest.json +++ b/manifest.json @@ -12,15 +12,27 @@ "description": "Query Debian-related websites using the text in the clipboard", "homepage_url": "http://icedeb.ktnx.net/", "icons": { - "48": "icons/icedeb-addon.svg" + "48": "icons/openlogo-nd.svg" }, "permissions": [ "activeTab", "storage", "clipboardRead" ], "browser_action": { "browser_style": true, - "default_icon": "icons/openlogo-nd.svg", + "default_icon": "icons/icedeb-addon-light.svg", "default_title": "Query Debian websites", - "default_popup": "icedeb.html" + "default_popup": "icedeb.html", + "theme_icons": [ + { + "light": "icons/icedeb-addon-light.svg", + "dark": "icons/icedeb-addon-dark.svg", + "size": 16 + }, + { + "light": "icons/icedeb-addon-light.svg", + "dark": "icons/icedeb-addon-dark.svg", + "size": 32 + } + ] } } -- 2.39.5