Skip to content

Commit 40a222e

Browse files
committed
Organize Icons
1 parent 323bc2b commit 40a222e

File tree

7 files changed

+3
-4
lines changed

7 files changed

+3
-4
lines changed

0.png renamed to icons/0.png

File renamed without changes.

1.png renamed to icons/1.png

File renamed without changes.

2.png renamed to icons/2.png

File renamed without changes.

icon.png renamed to icons/icon.png

File renamed without changes.

icons/icon.psd

313 KB
Binary file not shown.

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
]
1414
}],
1515
"browser_action": {
16-
"default_icon": "0.png",
16+
"default_icon": "icons/icon.png",
1717
"default_popup": "popup.html"
1818
},
1919
"permissions": [

popup.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ document.addEventListener('DOMContentLoaded', function() {
99
chrome.storage.sync.get(names, function(data) {
1010
for (var i = sliders.length - 1; i >= 0; i--) {
1111
sliders[i].value = data[names[i]];
12-
console.log(sliders[i].value + ".png")
13-
chrome.browserAction.setIcon({path: sliders[i].value + ".png"});
12+
chrome.browserAction.setIcon({path: "icons/" + sliders[i].value + ".png"});
1413
}
1514
});
1615
sliders[0].oninput = function() {
1716
chrome.storage.sync.set({"wikis_notes": this.value});
1817
chrome.tabs.executeScript({code: 'update_settings();'});
19-
chrome.browserAction.setIcon({path: this.value + ".png"});
18+
chrome.browserAction.setIcon({path: "icons/" + this.value + ".png"});
2019
}
2120
});

0 commit comments

Comments
 (0)