Move images into a separate directory

This commit is contained in:
tophf 2017-03-24 19:38:02 +03:00
parent b1c19bdf3d
commit a6c3424b53
19 changed files with 11 additions and 10 deletions

View File

Before

Width:  |  Height:  |  Size: 532 B

After

Width:  |  Height:  |  Size: 532 B

View File

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

Before

Width:  |  Height:  |  Size: 476 B

After

Width:  |  Height:  |  Size: 476 B

View File

Before

Width:  |  Height:  |  Size: 331 B

After

Width:  |  Height:  |  Size: 331 B

View File

Before

Width:  |  Height:  |  Size: 449 B

After

Width:  |  Height:  |  Size: 449 B

View File

Before

Width:  |  Height:  |  Size: 787 B

After

Width:  |  Height:  |  Size: 787 B

View File

Before

Width:  |  Height:  |  Size: 571 B

After

Width:  |  Height:  |  Size: 571 B

View File

Before

Width:  |  Height:  |  Size: 837 B

After

Width:  |  Height:  |  Size: 837 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1010 B

After

Width:  |  Height:  |  Size: 1010 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -6,9 +6,10 @@
"homepage_url": "http://add0n.com/stylus.html",
"manifest_version": 2,
"icons": {
"16": "16.png",
"48": "48.png",
"128": "128.png"
"16": "/images/icon/16.png",
"32": "/images/icon/32.png",
"48": "/images/icon/48.png",
"128": "/images/icon/128.png"
},
"permissions": [
"tabs",
@ -44,10 +45,10 @@
],
"browser_action": {
"default_icon": {
"16": "16w.png",
"32": "32w.png",
"19": "19w.png",
"38": "38w.png"
"16": "/images/icon/16w.png",
"32": "/images/icon/32w.png",
"19": "/images/icon/19w.png",
"38": "/images/icon/38w.png"
},
"default_title": "Stylus",
"default_popup": "popup.html"

View File

@ -94,9 +94,9 @@ function updateIcon(tab, styles) {
chrome.browserAction.setIcon({
path: {
// 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
19: '19' + postfix + '.png', 38: '38' + postfix + '.png',
19: `/images/icon/19${postfix}.png`, 38: `/images/icon/38${postfix}.png`,
},
tabId: tab.id
}, () => {

View File

@ -49,7 +49,7 @@
width: 0;
height: 0;
padding: 0 32px 32px 0;
background: url(/32.png);
background: url('/images/icon/32.png');
display: inline-block;
vertical-align: middle;
margin-right: .5rem;