invidious-experimenting/src/invidious/views
psvenk f54fbd057e Add prefers-color-scheme support (#601)
* Add prefers-color-scheme support

This should fix <https://github.com/omarroth/invidious/issues/559>.
The cookie storage format has been changed from boolean
("true"/"false") to tri-state ("dark"/"light"/""), so that users
without a cookie set will get dark mode if they have enabled the dark
theme in their operating system. The code for handling the cookie
state, along with the user's operating system theme, has been factored
out into a new function `update_mode`, which is called both at window
load and at the "storage" event listener, because the "storage" event
listener is only trigerred when a change is made to the localStorage
from another tab/window (for more info - see
<https://stackoverflow.com/a/4679754>).
2019-08-15 11:29:55 -05:00
..
components Add support for player styles 2019-08-09 02:04:36 +02:00
authorize_token.ecr Provide empty response on 204 2019-05-27 08:35:38 -05:00
change_password.ecr Add option to change passwords 2019-04-22 10:18:17 -05:00
channel.ecr Fix overflow for channel description 2019-08-04 09:46:26 -05:00
clear_watch_history.ecr Fix referer escaping 2019-05-03 12:15:21 -05:00
community.ecr Fix overflow for channel description 2019-08-04 09:46:26 -05:00
data_control.ecr Fix referer escaping 2019-05-03 12:15:21 -05:00
delete_account.ecr Fix referer escaping 2019-05-03 12:15:21 -05:00
embed.ecr Update video extractor 2019-07-29 19:41:45 -05:00
error.ecr Minor formatting changes 2019-05-01 20:03:39 -05:00
history.ecr Format history.ecr 2019-08-05 18:57:32 -05:00
licenses.ecr Add community page 2019-07-09 09:31:04 -05:00
login.ecr Add support for Google login verification 2019-07-22 13:28:36 -05:00
mix.ecr Minor formatting changes 2019-05-01 20:03:39 -05:00
playlist.ecr Set max preference size 2019-06-08 16:04:55 -05:00
playlists.ecr Fix overflow for channel description 2019-08-04 09:46:26 -05:00
popular.ecr Minor formatting changes 2019-05-01 20:03:39 -05:00
preferences.ecr Add prefers-color-scheme support (#601) 2019-08-15 11:29:55 -05:00
privacy.ecr Minor formatting changes 2019-05-01 20:03:39 -05:00
search.ecr Set max preference size 2019-06-08 16:04:55 -05:00
subscription_manager.ecr Shorten timeout for AJAX 2019-06-16 12:55:17 -05:00
subscriptions.ecr Set max preference size 2019-06-08 16:04:55 -05:00
template.ecr Add prefers-color-scheme support (#601) 2019-08-15 11:29:55 -05:00
token_manager.ecr Shorten timeout for AJAX 2019-06-16 12:55:17 -05:00
top.ecr Minor formatting changes 2019-05-01 20:03:39 -05:00
trending.ecr Minor formatting changes 2019-05-01 20:03:39 -05:00
watch.ecr Update icon for unlisted videos 2019-08-05 18:57:32 -05:00