Skip to content

Commit 4b0781d

Browse files
committed
Added Glyph Icons
1 parent 5095709 commit 4b0781d

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ public List<Result> LoadContextMenus(Result selectedResult)
183183
return false;
184184
}
185185
},
186-
IcoPath = "Images\\copylink.png"
186+
IcoPath = "Images\\copylink.png",
187+
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue8c8")
187188
}
188189
};
189190
}
@@ -200,4 +201,4 @@ public void Dispose()
200201
}
201202
}
202203
}
203-
}
204+
}

Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ public List<Result> LoadContextMenus(Result selectedResult)
8282
},
8383
SubTitleToolTip = Context.API.GetTranslation("plugin_explorer_contextmenu_titletooltip"),
8484
TitleToolTip = Context.API.GetTranslation("plugin_explorer_contextmenu_titletooltip"),
85-
IcoPath = Constants.QuickAccessImagePath
85+
IcoPath = Constants.QuickAccessImagePath,
86+
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue718"),
8687
});
8788
}
8889
else
@@ -107,7 +108,8 @@ public List<Result> LoadContextMenus(Result selectedResult)
107108
},
108109
SubTitleToolTip = Context.API.GetTranslation("plugin_explorer_contextmenu_remove_titletooltip"),
109110
TitleToolTip = Context.API.GetTranslation("plugin_explorer_contextmenu_remove_titletooltip"),
110-
IcoPath = Constants.RemoveQuickAccessImagePath
111+
IcoPath = Constants.RemoveQuickAccessImagePath,
112+
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\uecc9")
111113
});
112114
}
113115

@@ -130,7 +132,8 @@ public List<Result> LoadContextMenus(Result selectedResult)
130132
return false;
131133
}
132134
},
133-
IcoPath = Constants.CopyImagePath
135+
IcoPath = Constants.CopyImagePath,
136+
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue8c8")
134137
});
135138

136139
contextMenus.Add(new Result
@@ -156,7 +159,8 @@ public List<Result> LoadContextMenus(Result selectedResult)
156159
}
157160

158161
},
159-
IcoPath = icoPath
162+
IcoPath = icoPath,
163+
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\uf12b")
160164
});
161165

162166

@@ -199,7 +203,8 @@ public List<Result> LoadContextMenus(Result selectedResult)
199203

200204
return true;
201205
},
202-
IcoPath = Constants.DeleteFileFolderImagePath
206+
IcoPath = Constants.DeleteFileFolderImagePath,
207+
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue74d")
203208
});
204209

205210
if (record.Type is not ResultType.Volume)
@@ -297,7 +302,8 @@ private Result CreateOpenContainingFolderResult(SearchResult record)
297302

298303
return true;
299304
},
300-
IcoPath = Constants.FolderImagePath
305+
IcoPath = Constants.FolderImagePath,
306+
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue838")
301307
};
302308
}
303309

Plugins/Flow.Launcher.Plugin.Shell/Main.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,8 @@ public List<Result> LoadContextMenus(Result selectedResult)
381381
Execute(ShellCommand.RunAsDifferentUser, PrepareProcessStartInfo(selectedResult.Title));
382382
return true;
383383
},
384-
IcoPath = "Images/user.png"
384+
IcoPath = "Images/user.png",
385+
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\xe7ee")
385386
},
386387
new Result
387388
{
@@ -391,7 +392,8 @@ public List<Result> LoadContextMenus(Result selectedResult)
391392
Execute(Process.Start, PrepareProcessStartInfo(selectedResult.Title, true));
392393
return true;
393394
},
394-
IcoPath = "Images/admin.png"
395+
IcoPath = "Images/admin.png",
396+
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\xe7ef")
395397
},
396398
new Result
397399
{
@@ -401,7 +403,8 @@ public List<Result> LoadContextMenus(Result selectedResult)
401403
Clipboard.SetDataObject(selectedResult.Title);
402404
return true;
403405
},
404-
IcoPath = "Images/copy.png"
406+
IcoPath = "Images/copy.png",
407+
Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\xe8c8")
405408
}
406409
};
407410

0 commit comments

Comments
 (0)