discourse/app
Joe 3d9464b7da
UX: Set theme color on splash a bit earlier (#17619)
Context: https://meta.discourse.org/t/introducing-discourse-splash-a-visual-preloader-displayed-while-site-assets-load/232003/17

We currently set the theme secondary color as the background for the splash, and this works and respects light/dark modes.

The issue is that we set it on the #d-splash div. That div doesn't have a specified height and only gets its height when the splash image loads.

This can cause a flicker effect where the <HTML> background shows for a fraction of a second while the splash image loads.

This PR sets the theme color on the <HTML> tag to alleviate this. This allows us to set the theme color a little bit sooner and should hopefully prevent the flicker effect from happening.

This PR also adds the theme-color <meta> tag for dark mode. Browsers that don't support multiple theme-color tags will ignore the second tag and fall back to the first one.
2022-07-23 17:53:42 +08:00
..
assets UX: let hamburger-sidebar restrict child width (#17614) 2022-07-22 10:26:13 -04:00
controllers DEV: Refactor user mute/ignore/disallow PM checks into central class (#17366) 2022-07-13 13:58:01 +10:00
helpers DEV: Remove development cache-buster query parameter (#17444) 2022-07-12 11:53:59 +01:00
jobs FIX: Notify tag watchers when publishing topic (#17576) 2022-07-20 19:07:18 +03:00
mailers FEATURE: Custom unsubscribe options (#17090) 2022-06-21 15:49:47 -03:00
models DEV: Add a helper method to clear every possible theme cache (#17585) 2022-07-22 09:46:52 +03:00
serializers FEATURE: Add plugin API to register About stat group (#17442) 2022-07-15 13:16:00 +10:00
services DEV: Refactor user_badge_granted DiscourseEvent logic (#17579) 2022-07-22 09:06:02 +08:00
views UX: Set theme color on splash a bit earlier (#17619) 2022-07-23 17:53:42 +08:00