Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 3b1650b

Browse files
committedJun 28, 2019
icons
1 parent 0176a93 commit 3b1650b

23 files changed

+11
-304
lines changed
 

‎.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ material-style.min.css
1212
/__sapper__/
1313
/static/
1414
/public/bundle.*
15-
/public/styles/sass-cache
15+
/public/styles/sass-cache
16+
/public/

‎favicon.ico

1.12 KB
Binary file not shown.

‎fetch.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
(function (w,
22
storage,
3-
panels) {
3+
panels,
4+
browserAction) {
45
const SETTINGS = 'devtools-settings';
56
const DEVTOOLS_THEME = 'devtools-theme';
67
const DEVTOOLS_FONT = 'devtools-font';
@@ -205,24 +206,22 @@
205206
if (settings && settings.startsWith('{')) {
206207
const json = JSON.parse(settings);
207208
const size = json[DEVTOOLS_SIZE],
208-
theme = json[DEVTOOLS_THEME],
209+
theme = json[DEVTOOLS_THEME] || 'Material Oceanic',
209210
current = json[DEVTOOLS_CURRENT],
210211
family = json[DEVTOOLS_FONT];
211212

212213
let style = styleBuilder.applyTheme(current, family, size);
213214
panels.applyStyleSheet(style);
215+
browserAction.setIcon({path: `./public/icons/${theme}.svg`}, () => {});
214216
}
215217
});
216218
}
217219

218-
function init() {
219-
themeSetup();
220-
}
221-
222-
init();
220+
themeSetup();
223221
})(
224222
window,
225223
chrome.storage.sync,
226224
chrome.devtools.panels,
225+
chrome.browserAction,
227226
);
228227

‎icon.svg

-21
This file was deleted.

‎icon128.png

-4.33 KB
Loading

‎icon16.png

-975 Bytes
Loading

‎icon32.png

931 Bytes
Loading

‎icon48.png

-4.04 KB
Loading

‎manifest.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
"storage"
1111
],
1212
"browser_action": {
13-
"default_icon": "icon.png",
14-
"default_title": "Get Material",
13+
"default_icon": "icon128.png",
14+
"default_title": "Material UI Devtools Settings",
1515
"default_popup": "/public/index.html"
1616
},
1717
"icons": {
1818
"16": "icon16.png",
19+
"32": "icon32.png",
1920
"48": "icon48.png",
2021
"128": "icon128.png"
2122
}

‎public/icons/material-arcdark.svg

-21
This file was deleted.

‎public/icons/material-darker.svg

-21
This file was deleted.

‎public/icons/material-deepocean.svg

-21
This file was deleted.

‎public/icons/material-dracula.svg

-21
This file was deleted.

‎public/icons/material-github.svg

-21
This file was deleted.

‎public/icons/material-lighter.svg

-21
This file was deleted.

‎public/icons/material-monokai.svg

-21
This file was deleted.

‎public/icons/material-oceanic.svg

-21
This file was deleted.

‎public/icons/material-onedark.svg

-21
This file was deleted.

‎public/icons/material-onelight.svg

-21
This file was deleted.

‎public/icons/material-palenight.svg

-21
This file was deleted.

‎public/icons/material-solardark.svg

-21
This file was deleted.

‎public/icons/material-solarlight.svg

-21
This file was deleted.

‎theme.png

-596 KB
Binary file not shown.

0 commit comments

Comments
 (0)
This repository has been archived.