From 7c2f6c56000b5af5e86d97b535d02e24a7d1b322 Mon Sep 17 00:00:00 2001 From: Lyall Hamilton Date: Wed, 9 Oct 2013 18:12:05 +1300 Subject: Add favicons to vomnibar completions Favicons are displayed as a background-image style next to urls in similar style to chrome's history page. For tabs the icon is fetched from the url specified by chrome tab's favIconUrl property. Unfortunately extensions to not have access to chrome://favicons/ to get bookmark favicons but fortunately most sites serve a favicon from protocol://hostname/favicon.ico (e.g. http://example.com/favicon.ico) so this url is tried for non-tab types. --- content_scripts/vimium.css | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'content_scripts') diff --git a/content_scripts/vimium.css b/content_scripts/vimium.css index ccbcb339..a486c8ef 100644 --- a/content_scripts/vimium.css +++ b/content_scripts/vimium.css @@ -349,6 +349,13 @@ body.vimiumFindMode ::selection { padding: 2px 0; } +#vomnibar li .vomnibarIcon { + background-position-y: center; + background-size: 16px; + background-repeat: no-repeat; + padding-left: 20px; +} + #vomnibar li .vomnibarSource { color: #777; margin-right: 4px; -- cgit v1.2.3