Closed jeffgca closed 1 year ago
Looks like we can do this pretty easily:
Eg I was able to add this debug code in devtools.js and it worked:
browser.devtools.panels.onThemeChanged.addListener(() => { console.log('theme changed?', browser.devtools.panels.themeName) })
....this does not work on chrome. What does work is passing the value of browser.devtools.panels.themeName
into the panel in the onShown handler.
Chrome has some additional limitations / differences:
TODO: test Safari I guess
Looks like we can do this pretty easily:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/devtools/panels/onThemeChanged
Eg I was able to add this debug code in devtools.js and it worked: