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.
This commit is contained in:
Lasith Manujitha 2024-11-17 11:22:09 +05:30
parent ed5373653d
commit d1ebaaa42c

View file

@ -68,7 +68,7 @@ public class Main : ISettingProvider, IPlugin, IReloadable, IPluginI18n, IContex
{
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 class Main : ISettingProvider, IPlugin, IReloadable, IPluginI18n, IContex
{
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 = _ =>
{