Move images into a separate directory
Before Width: | Height: | Size: 532 B After Width: | Height: | Size: 532 B |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 476 B After Width: | Height: | Size: 476 B |
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 331 B |
Before Width: | Height: | Size: 449 B After Width: | Height: | Size: 449 B |
Before Width: | Height: | Size: 787 B After Width: | Height: | Size: 787 B |
Before Width: | Height: | Size: 571 B After Width: | Height: | Size: 571 B |
Before Width: | Height: | Size: 837 B After Width: | Height: | Size: 837 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1010 B After Width: | Height: | Size: 1010 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
@ -6,9 +6,10 @@
|
||||||
"homepage_url": "http://add0n.com/stylus.html",
|
"homepage_url": "http://add0n.com/stylus.html",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"icons": {
|
"icons": {
|
||||||
"16": "16.png",
|
"16": "/images/icon/16.png",
|
||||||
"48": "48.png",
|
"32": "/images/icon/32.png",
|
||||||
"128": "128.png"
|
"48": "/images/icon/48.png",
|
||||||
|
"128": "/images/icon/128.png"
|
||||||
},
|
},
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"tabs",
|
"tabs",
|
||||||
|
@ -44,10 +45,10 @@
|
||||||
],
|
],
|
||||||
"browser_action": {
|
"browser_action": {
|
||||||
"default_icon": {
|
"default_icon": {
|
||||||
"16": "16w.png",
|
"16": "/images/icon/16w.png",
|
||||||
"32": "32w.png",
|
"32": "/images/icon/32w.png",
|
||||||
"19": "19w.png",
|
"19": "/images/icon/19w.png",
|
||||||
"38": "38w.png"
|
"38": "/images/icon/38w.png"
|
||||||
},
|
},
|
||||||
"default_title": "Stylus",
|
"default_title": "Stylus",
|
||||||
"default_popup": "popup.html"
|
"default_popup": "popup.html"
|
||||||
|
|
|
@ -94,9 +94,9 @@ function updateIcon(tab, styles) {
|
||||||
chrome.browserAction.setIcon({
|
chrome.browserAction.setIcon({
|
||||||
path: {
|
path: {
|
||||||
// Material Design 2016 new size is 16px
|
// Material Design 2016 new size is 16px
|
||||||
16: '16' + postfix + '.png', 32: '32' + postfix + '.png',
|
16: `/images/icon/16${postfix}.png`, 32: `/images/icon/32${postfix}.png`,
|
||||||
// Chromium forks or non-chromium browsers may still use the traditional 19px
|
// Chromium forks or non-chromium browsers may still use the traditional 19px
|
||||||
19: '19' + postfix + '.png', 38: '38' + postfix + '.png',
|
19: `/images/icon/19${postfix}.png`, 38: `/images/icon/38${postfix}.png`,
|
||||||
},
|
},
|
||||||
tabId: tab.id
|
tabId: tab.id
|
||||||
}, () => {
|
}, () => {
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
padding: 0 32px 32px 0;
|
padding: 0 32px 32px 0;
|
||||||
background: url(/32.png);
|
background: url('/images/icon/32.png');
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-right: .5rem;
|
margin-right: .5rem;
|
||||||
|
|