MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

Add-ons

update

Updates the browser theme according to the content of theme object.

Syntax

browser.theme.update(
  theme              // Theme object
)

Parameters

None

Browser compatibility

ChromeEdgeFirefoxFirefox for AndroidOpera
Basic supportNoNo55NoNo

Examples

Sets the browser theme to use a sun graphic with complimentary background color:

const suntheme = {
 images: {
   headerURL: 'sun.jpg',
 },
 colors: {
   accentcolor: '#CF723F',
   textcolor: '#111',
 }
};

browser.theme.update(suntheme);

Example extensions

 

Document Tags and Contributors

 Contributors to this page: rebloor
 Last updated by: rebloor,