Custom Safari bookmark icon and color on Touch Bar

前端 未结 1 1852
囚心锁ツ
囚心锁ツ 2021-02-05 20:52

The Macbook Pro 13 and 15\" laptops have a Touch Bar (interactive display) on the keyboard. All the bookmarks are displayed on the Touch Bar when using Safari. Some websites (li

1条回答
  •  一个人的身影
    2021-02-05 21:43

    I have found the answer to my question after a week. Hope this helps someone.

    First, you need to create and upload a special vector image of your logo to your website. The vector image needs to be 100% black with a transparent background. Then you need to add a "mask-icon" metatag to your website. You can set a color for your image in this HTML tag. This image is used for the touch bar and also for pinned tabs.

    The mask-icon HTML tag:

    
    

    Check out the Apple developer docs: https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/pinnedTabs/pinnedTabs.html

    0 讨论(0)
提交回复
热议问题