Jonas Jenwald 40a4d53fb3 Add a new preference, viewerCssTheme, to allow forcing the use of the light/dark viewer CSS themes (issue 12290)
While this does work pretty well in my quick testing, it's *very much* a hack since as far as I can tell there's no support in the CSS specification for using e.g. a CSS variable to override a `@media (prefers-color-scheme: dark) {...}` block.

The solution implemented here is thus to *edit* the viewer CSS, by either removing the entire `@media ...` block in light-mode or by ensuring that its rules become *unconditionally* applied in dark-mode.
To simplify the overall implementation, since all of this does seem like somewhat of an edge-case, the `viewerCssTheme` preference will *only* be read during viewer initialization. (Similar to many other existing preferences, a reload is thus required when changing it.)
2020-11-16 21:13:13 +01:00
..
2020-04-14 12:28:14 +02:00
2020-04-14 12:28:14 +02:00
2016-07-10 17:49:16 +08:00
2016-07-10 17:49:16 +08:00
2016-07-10 17:49:16 +08:00
2016-07-10 17:49:16 +08:00
2018-01-26 15:54:35 +01:00
2020-04-14 12:28:14 +02:00
2020-04-14 12:28:14 +02:00