commit | 71357f781c9831d7474975b886e87a60c956f22a | [log] [tgz] |
---|---|---|
author | Peter E Conn <peconn@chromium.org> | Thu May 23 09:30:36 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu May 23 09:30:36 2019 |
tree | 9fdbef1c1ee18ac8c72255c6908fa7da50dc515c | |
parent | 4cddf5b6f0c35f2a5e13b5def6c4663638235cfc [diff] |
🛃 Allow TWA sites to theme the status bar color. When on the verified origin in a Trusted Web Activity, the page's theme color will be used for the status bar. Previously this was ignored and the toolbar color provided by the client was used. The page's theme color takes precedence over the toolbar color if provided. This results in the following logic for the status bar color in TWAs: - If on the verified origin: - If the page has a theme color, use that. - Otherwise if the client provided a toolbar color, use that. - Otherwise use Chrome's default. - Otherwise, if not on the verified origin: - If the client provided a toolbar color, use that. - Otherwise use Chrome's default. Bug: 964914 Change-Id: Ic41f4cfd1b834fdc9c3444f33dc163de52c9792f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1624332 Commit-Queue: Peter Conn <peconn@chromium.org> Reviewed-by: Pavel Shmakov <pshmakov@chromium.org> Cr-Commit-Position: refs/heads/master@{#662553}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .