New theme examples (#248)
9
themes/animated/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Themes: Animated
|
||||
|
||||
## What it does
|
||||
|
||||
Employs an animated PNG image as the headerURL image in a theme.
|
||||
|
||||
## What it shows
|
||||
|
||||
How to use an animated image in a theme.
|
||||
19
themes/animated/manifest.json
Executable file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
|
||||
"description": "Theme using an animated PNG file as the headerURL image. See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Examples#themes",
|
||||
"manifest_version": 2,
|
||||
"name": "animated",
|
||||
"version": "1.0",
|
||||
"homepage_url": "https://github.com/mdn/webextensions-examples/tree/master/themes/animated",
|
||||
|
||||
"theme": {
|
||||
"images": {
|
||||
"headerURL": "parrot.png"
|
||||
},
|
||||
|
||||
"colors": {
|
||||
"accentcolor": "#ffffff",
|
||||
"textcolor": "#000"
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
themes/animated/parrot.png
Executable file
|
After Width: | Height: | Size: 402 KiB |
BIN
themes/animated/parrot_frames/1.png
Executable file
|
After Width: | Height: | Size: 163 KiB |
BIN
themes/animated/parrot_frames/10.png
Executable file
|
After Width: | Height: | Size: 163 KiB |
BIN
themes/animated/parrot_frames/2.png
Executable file
|
After Width: | Height: | Size: 163 KiB |
BIN
themes/animated/parrot_frames/3.png
Executable file
|
After Width: | Height: | Size: 160 KiB |
BIN
themes/animated/parrot_frames/4.png
Executable file
|
After Width: | Height: | Size: 159 KiB |
BIN
themes/animated/parrot_frames/5.png
Executable file
|
After Width: | Height: | Size: 160 KiB |
BIN
themes/animated/parrot_frames/6.png
Executable file
|
After Width: | Height: | Size: 160 KiB |
BIN
themes/animated/parrot_frames/7.png
Executable file
|
After Width: | Height: | Size: 153 KiB |
BIN
themes/animated/parrot_frames/8.png
Executable file
|
After Width: | Height: | Size: 149 KiB |
BIN
themes/animated/parrot_frames/9.png
Executable file
|
After Width: | Height: | Size: 159 KiB |
10
themes/weta_fade/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# Themes: weta_fade
|
||||
|
||||
## What it does
|
||||
|
||||
Employs a PNG image as the headerURL image in a theme.
|
||||
|
||||
## What it shows
|
||||
|
||||
How to create a single image theme, using a faded edge and background color to ensure
|
||||
the image works well on a range of screen sizes.
|
||||
19
themes/weta_fade/manifest.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
|
||||
"description": "Theme using a PNG as the headerURL image, employing a faded edge. See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Examples#themes",
|
||||
"manifest_version": 2,
|
||||
"name": "weta_fade",
|
||||
"version": "1.0",
|
||||
"homepage_url": "https://github.com/mdn/webextensions-examples/tree/master/themes/weta_fade",
|
||||
|
||||
"theme": {
|
||||
"images": {
|
||||
"headerURL": "weta.png"
|
||||
},
|
||||
|
||||
"colors": {
|
||||
"accentcolor": "#adb09f",
|
||||
"textcolor": "#000"
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
themes/weta_fade/weta.png
Executable file
|
After Width: | Height: | Size: 124 KiB |
9
themes/weta_fade_chrome/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Themes: Animated
|
||||
|
||||
## What it does
|
||||
|
||||
Employs an PNG image as the Chrome compatible theme_frame image in a theme.
|
||||
|
||||
## What it shows
|
||||
|
||||
How to use the Chrome compatible keys in a theme's manifest.json file to make a theme available for Firefox and Chrome.
|
||||
21
themes/weta_fade_chrome/manifest.json
Executable file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
|
||||
"description": "Version of the weta_fade theme using the Chrome compatible manifest keys. See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Examples#themes",
|
||||
"manifest_version": 2,
|
||||
"name": "weta_fade_chrome",
|
||||
"version": "1.0",
|
||||
"homepage_url": "https://github.com/mdn/webextensions-examples/tree/master/themes/weta_fade_chrome",
|
||||
|
||||
|
||||
"theme": {
|
||||
"images": {
|
||||
"theme_frame": "weta.png"
|
||||
},
|
||||
|
||||
"colors": {
|
||||
"frame": [ 173 , 176 , 159 ],
|
||||
"tab_text": [ 0 , 0 , 0 ]
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
BIN
themes/weta_fade_chrome/weta.png
Executable file
|
After Width: | Height: | Size: 124 KiB |
9
themes/weta_mirror/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Themes: Animated
|
||||
|
||||
## What it does
|
||||
|
||||
Employs two PNG images to create a mirror effect with the theme images.
|
||||
|
||||
## What it shows
|
||||
|
||||
How to use "additional_backgrounds": in conjunction with "additional_backgrounds_alignment": to place multiple images within the browser header.
|
||||
BIN
themes/weta_mirror/empty.png
Executable file
|
After Width: | Height: | Size: 332 B |
24
themes/weta_mirror/manifest.json
Executable file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
|
||||
"description": "Theme using multiple additional_backgrounds images. See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Examples#themes",
|
||||
"manifest_version": 2,
|
||||
"name": "weta_mirror",
|
||||
"version": "1.0",
|
||||
"homepage_url": "https://github.com/mdn/webextensions-examples/tree/master/themes/weta_mirror",
|
||||
|
||||
"theme": {
|
||||
"images": {
|
||||
"headerURL": "empty.png",
|
||||
"additional_backgrounds": [ "weta.png", "weta-left.png"]
|
||||
},
|
||||
|
||||
"properties": {
|
||||
"additional_backgrounds_alignment": [ "right top" , "left top" ]
|
||||
},
|
||||
|
||||
"colors": {
|
||||
"accentcolor": "#adb09f",
|
||||
"textcolor": "#000"
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
themes/weta_mirror/weta-left.png
Executable file
|
After Width: | Height: | Size: 122 KiB |
BIN
themes/weta_mirror/weta.png
Executable file
|
After Width: | Height: | Size: 124 KiB |
9
themes/weta_tiled/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Themes: Animated
|
||||
|
||||
## What it does
|
||||
|
||||
Tiles a PNG imagein the browser header.
|
||||
|
||||
## What it shows
|
||||
|
||||
How to use "additional_backgrounds": in conjunction with "additional_backgrounds_alignment": and "additional_backgrounds_tiling": to place an image within the browser header and then tile it.
|
||||
BIN
themes/weta_tiled/empty.png
Executable file
|
After Width: | Height: | Size: 332 B |
25
themes/weta_tiled/manifest.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
|
||||
"description": "Theme with a single image placed centrally and then tiled. See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Examples#themes",
|
||||
"manifest_version": 2,
|
||||
"name": "weta_tiled",
|
||||
"version": "1.0",
|
||||
"homepage_url": "https://github.com/mdn/webextensions-examples/tree/master/themes/weta_tiled",
|
||||
|
||||
"theme": {
|
||||
"images": {
|
||||
"headerURL": "empty.png",
|
||||
"additional_backgrounds": [ "weta_for_tiling.png"]
|
||||
},
|
||||
|
||||
"properties": {
|
||||
"additional_backgrounds_alignment": [ "top" ],
|
||||
"additional_backgrounds_tiling": [ "repeat" ]
|
||||
},
|
||||
|
||||
"colors": {
|
||||
"accentcolor": "#adb09f",
|
||||
"textcolor": "#000"
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
themes/weta_tiled/weta_for_tiling.png
Executable file
|
After Width: | Height: | Size: 91 KiB |