An example using the theme API to integrate the interface of a sidebar_action to the current theme properties.
How to use the browser.theme.getCurrent(), browser.theme.onUpdated and the sidebar_action API.
- Install a WebExtension theme that sets
accentcolor
,toolbar
ortoolbar_text
- Install this extension
- The sidebar should then use colors from the WebExtension theme