mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 06:48:37 +02:00
15 lines
473 B
Markdown
15 lines
473 B
Markdown
# Theme integrated sidebar
|
|
|
|
## What it does
|
|
|
|
An example using the theme API to integrate the interface of a sidebar_action to the current theme properties.
|
|
|
|
## What it shows
|
|
|
|
How to use the browser.theme.getCurrent(), browser.theme.onUpdated and the sidebar_action API.
|
|
|
|
## Instructions to try this
|
|
|
|
- Install a WebExtension theme that sets `accentcolor`, `toolbar` or `toolbar_text`
|
|
- Install this extension
|
|
- The sidebar should then use colors from the WebExtension theme |