From d1ebaaa42c6d2afaa3813673b78c24ef8176b6ac Mon Sep 17 00:00:00 2001 From: Lasith Manujitha Date: Sun, 17 Nov 2024 11:22:09 +0530 Subject: [PATCH] feat: show favicons as bookmarks icons We replaced the default bookmarks plugin icon with Google's favicon API to fetch and display favicons for each bookmark from their corresponding websites. --- Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs index a48d70f2d46..d1ed8412fe7 100644 --- a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs @@ -68,7 +68,7 @@ public List Query(Query query) { Title = c.Name, SubTitle = c.Url, - IcoPath = @"Images\bookmark.png", + IcoPath = $"https://www.google.com/s2/favicons?domain={c.Url}&sz=64", Score = BookmarkLoader.MatchProgram(c, param).Score, Action = _ => { @@ -90,7 +90,7 @@ public List Query(Query query) { Title = c.Name, SubTitle = c.Url, - IcoPath = @"Images\bookmark.png", + IcoPath = $"https://www.google.com/s2/favicons?domain={c.Url}&sz=64", Score = 5, Action = _ => {