🛃 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}
Showing
Please register or sign in to comment