-
acelya authored
This avoids white flashes when the extension loads or the sidebar opens, due to the background color used in the default theme of the extension. This needs an `userChrome.css` to override the default panel loading color. When the button for opening the sidebar is clicked or a shortcut triggered, the current theme is loaded and the sidebar is opened at the same time. But the loading of the browser theme need time so isn't applied immediatly, the default theme is displayed instead for a limited time but long enought to create the flash. Now, the theme is loaded when the extension is loaded and theme is transmitted to `sidebar.html` as an html parameter. It's the same for custom css. `sidebar.html` load as quickly as possible `theme.js` which applies the nice browser theme.
d06640f4