Provide meta tag theme colour of content to browser apps for theming
Categories
(GeckoView :: General, enhancement, P3)
Tracking
(firefox66 wontfix, firefox67 wontfix, firefox68 fix-optional)
Tracking | Status | |
---|---|---|
firefox66 | --- | wontfix |
firefox67 | --- | wontfix |
firefox68 | --- | fix-optional |
People
(Reporter: jonalmeida, Unassigned)
References
(Depends on 1 open bug)
Details
(Whiteboard: [geckoview:fenix:p3][fxdroid][foundation])
Attachments
(1 file)
164.47 KB,
image/png
|
Details |
Websites provide a theme colour in a (non-standard) meta tag. It would be nice if browser apps could leverage this feature to better customize the app's theme.
This is an example code of what a web developer would provide:
<meta name="theme-color" content="#db5945">
This can also be leveraged to make browser icons and thumbnails a more accurate depiction of what the site is from a tabs tray view.
Reference link: https://developers.google.com/web/fundamentals/design-and-ux/browser-customization/#meta_theme_color_for_chrome_and_opera
Reporter | ||
Comment 1•5 years ago
|
||
From the linked docs, it looks like we may have had some support for this in FxOS?
<!-- Chrome, Firefox OS and Opera -->
Comment 2•5 years ago
|
||
Sebastian, should the extraction of a page's meta theme-color be handled by the same AC component will extract website icon resources? Or does GV need to provide a new API?
https://github.com/mozilla-mobile/android-components/issues/2080
Comment 3•5 years ago
|
||
James suggests GV add utility APIs for apps to use Gecko's style decoding/conversion functionality.
We don't need this for Fenix MVP.
Updated•5 years ago
|
Comment 4•5 years ago
|
||
We can provide this through an experiment addon in GeckoView.
Comment 5•5 years ago
|
||
I'm editing a bunch of GeckoView bugs. If you'd like to filter all this bugmail, search and destroy emails containing this UUID:
e88a5094-0fc0-4b7c-b7c5-aef00a11dbc9
Comment 6•3 years ago
|
||
It would be good if this could also add support for the new media attribute for this meta tag. So content could set a theme colour based on the colour scheme.
Comment 7•2 years ago
|
||
Any update on this? The feature is present in all chrome browsers..even your own geckoview supports this custom theme..
Updated•2 years ago
|
Updated•2 years ago
|
Reporter | ||
Comment 9•9 months ago
|
||
(In reply to Chris Peterson [:cpeterson] from comment #3)
James suggests GV add utility APIs for apps to use Gecko's style decoding/conversion functionality.
We don't need this for Fenix MVP.
We will have a GeckoView Metadata API now that we can expose this through. Adding support in Gecko, should not be too hard and getting a quick solution that queries for the theme-color
as some initial support, and possibly also considering the prefers-color-scheme
media query as well when providing it to the embedder.
The attribute is considered part of the standard metadata names so we should be fine with using it.
Updated•9 months ago
|
Comment hidden (advocacy) |
Description
•