discourse/app/views/layouts
Osama Sayegh 787d512c03
FIX: Add theme-color <meta> tag when a dark scheme is selected (#18747)
Meta topic: https://meta.discourse.org/t/meta-theme-color-is-not-respecting-current-color-scheme/239815/7?u=osama.

This commit renders an additional `theme-color` `<meta>` tag for the dark scheme if the current user/request has a scheme selected for dark mode. We currently only render one `theme-color` tag which is always based on the user's selected scheme for light mode, but if the user also selects a scheme for dark mode and uses a device that's configured to use/prefer dark mode, the Discourse UI will be in dark mode, but any parts of the browser/OS UI that's colored based on the `theme-color` tag, would use a color from the user's selected light scheme and look inconsistent with the Discourse UI because the `theme-color` tag is based on the user's selected light scheme.

The additional `theme-color` tag has `media="(prefers-color-scheme: dark)"` and is based on the user's selected dark scheme which means any browser UI that's colored based on `theme-color` tags should be able to pick the right tag based on the user's preference for light/dark mode.
2022-10-26 07:18:05 +03:00
..
_head.html.erb FIX: Add theme-color <meta> tag when a dark scheme is selected (#18747) 2022-10-26 07:18:05 +03: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 DEV: remove H1 from crawler view header (#18201) 2022-09-12 10:46:00 -04:00
application.html.erb Revert "Revert "FEATURE: Preload resources via link header (#18475)" (#18511)" (#18531) 2022-10-11 20:11:44 -03: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 FEATURE: revamped wizard (#17477) 2022-07-27 06:53:01 +05:30
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