firefox-custom-new-tab-page icon indicating copy to clipboard operation
firefox-custom-new-tab-page copied to clipboard

Theme option, prevent flash of wrong system theme and other changes

Open will-lol opened this issue 3 years ago • 0 comments

Add theme option

I added an option that uses the theme.getCurrent() API to match the background of the tab before loading to that of the current theme.

Prevent flash of wrong system theme

When the system was in dark mode, the previous behavior would flash a white page before loading the page. Now the body color matches that of the default Firefox light and dark themes depending on the prefers-color-scheme media query. This does not override a custom color that may be set, it only applies to the 'none' setting.

Additional changes

I changed the light and dark colors to match that of the default Firefox light and dark themes.

will-lol avatar Feb 05 '23 01:02 will-lol