syncthing/gui
Pablo 9b01e64c66 gui, lib/api: Adds support for prefers-color-scheme (fixes #6115)
* gui, lib/api: Adds support for prefers-color-scheme on default theme (fixes #6115)

- Renames current default theme into a new "light" theme
- Modifies assets serving to allow getting assets from different themes

* lib/api: Serve assets from arbitrary theme when path starts with "theme-assets"

* lib/api: Moves constant out of function

* Loads light theme in browsers without support for prefers-color-scheme

* gui: Disables dark theme when printing

* Prevents repeated injection and adds support for older browsers

The CSS is always loaded if there is no support for `matchMedia`.
2019-11-08 21:44:37 +00:00
..
black/assets/css gui: Fix tab headers in black and dark themes (fixes #5583) 2019-10-01 20:09:52 +01:00
dark/assets/css gui: Fix tab headers in black and dark themes (fixes #5583) 2019-10-01 20:09:52 +01:00
default gui, lib/api: Adds support for prefers-color-scheme (fixes #6115) 2019-11-08 21:44:37 +00:00
light/assets/css gui, lib/api: Adds support for prefers-color-scheme (fixes #6115) 2019-11-08 21:44:37 +00:00