Fixes theme flickering for themes with other than white background (applies to any larger elements with other than white background).
The problem could be seen on page load, and most noticable on repeated page refresh. It was caused by loading the theme after the page was loaded, and as a result of that, the transition from page's blank background (usually white) to theme's background, was seen as flickering.
The solution was to load the theme as soon as possible and before the page parsing has completed. As theme does not change often, the loading could be even more optimized by using the localStorage.
Other changes:
setting html[data-page] (can be "notes" or "options") to allow page specific customization
moving RAW button to the end before i (info) button, B button is the first
using the same hover style for all the bottom buttons (sidebar buttons, toolbar buttons)
linting also files outside src (like build.ts and other)
Fixes theme flickering for themes with other than white background (applies to any larger elements with other than white background).
The problem could be seen on page load, and most noticable on repeated page refresh. It was caused by loading the theme after the page was loaded, and as a result of that, the transition from page's blank background (usually white) to theme's background, was seen as flickering.
The solution was to load the theme as soon as possible and before the page parsing has completed. As theme does not change often, the loading could be even more optimized by using the localStorage.
Other changes:
html[data-page]
(can be "notes" or "options") to allow page specific customizationbuild.ts
and other)