How did vivaldi.net set the colored URL bar in Chrome for Android?

I mean this effect. You can test it yourself by going to http://vivaldi.net from Chrome to Android.

+4
source share
1 answer

Quote from developers.google.com :

Starting with version 39 of Chrome for Android on Lollipop, you can now use the theme color meta tag to set the color of the toolbar - this means that there are no more ticketing panels! The syntax is pretty simple: add a meta tag to your pages <head>with name="theme-color", and set contentCSS to any valid color.

For example:

<meta name="theme-color" content="#db5945">
+5

Source: https://habr.com/ru/post/1627305/


All Articles