discourse/app
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
..
assets FIX: improves handling of filter with invalid tag chars (#17640) 2022-07-25 12:00:52 +02: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: Prevent color flicker on dark themes (#17620) 2022-07-25 18:02:21 +08:00