discourse/app/views/layouts
Joe 3c558d2eb6
UX: Prevent color flicker on dark themes (#17620)
Follow up to: #17619
Context: https://meta.discourse.org/t/introducing-discourse-splash-a-visual-preloader-displayed-while-site-assets-load/232003/17

We previously relied on the user's browser when deciding when to show the splash in light/dark mode. This worked well but can fail if the user manually selects a theme with a default "dark" scheme.

This PR will now factor that in. If the user selects a theme with a default dark scheme, use that. If a user selects a theme with a "light" default scheme and also picks a secondary "dark" scheme, use the media detection we had before.

This PR also removes the dark mode theme-color that was added in the previous PR. That will now go in a separate PR
2022-07-25 18:02:21 +08:00
..
_head.html.erb UX: Prevent color flicker on dark themes (#17620) 2022-07-25 18:02:21 +08:00
_noscript_footer.html.erb UX: Make header/footer HTML consistent for crawler and noscript 2022-04-07 15:27:06 +01:00
_noscript_header.html.erb UX: Make header/footer HTML consistent for crawler and noscript 2022-04-07 15:27:06 +01:00
application.html.erb DEV: Preload CSS in the <head> (#17322) 2022-07-05 00:23:09 +08:00
crawler.html.erb UX: Make header/footer HTML consistent for crawler and noscript 2022-04-07 15:27:06 +01:00
email_template.html.erb Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
embed.html.erb Code review comments. 2021-06-21 11:06:58 +08:00
ember_cli.html.erb remove some hardcoded 'localhost's from dev environment (#14801) 2021-11-03 11:26:44 +08:00
finish_installation.html.erb DEV: Make wizard an ember addon (#17027) 2022-06-17 14:50:21 +02:00
no_ember.html.erb DEV: adds server:after-body-open (#14106) 2021-08-24 14:35:44 +02:00
publish.html.erb FIX: adds google tracking to page publishing (#12090) 2021-02-15 19:00:35 +01:00