mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
add in different theme images (#294)
This commit is contained in:
@@ -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
|
||||
|
||||
BIN
beastify/icons/beasts-32-light.png
Normal file
BIN
beastify/icons/beasts-32-light.png
Normal file
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 |
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user