add in different theme images (#294)

This commit is contained in:
Andy McKay
2017-10-06 12:57:07 -07:00
committed by wbamberg
parent f635b67a20
commit 93711a6a48
4 changed files with 8 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ When the user clicks the reset button, the page reloads, and reverts to its orig
## What it shows ##
* write a browser action with a popup
* how to have different browser_action images based upon the theme
* give the popup style and behavior using CSS and JS
* inject a content script programmatically using `tabs.executeScript()`
* send a message from the main extension to a content script

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 550 B

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -11,14 +11,19 @@
"permissions": [
"activeTab"
],
],
"browser_action": {
"default_icon": "icons/beasts-32.png",
"theme_icons": [{
"light": "icons/beasts-32-light.png",
"dark": "icons/beasts-32.png",
"size": 32
}],
"default_title": "Beastify",
"default_popup": "popup/choose_beast.html"
},
"web_accessible_resources": [
"beasts/frog.jpg",
"beasts/turtle.jpg",