Skip to content

Commit 4172115

Browse files
Add glyphs for pm context menu
1 parent 842451d commit 4172115

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ public ContextMenu(PluginInitContext context)
1313
Context = context;
1414
}
1515

16+
private readonly GlyphInfo sourcecodeGlyph = new("/Resources/#Segoe Fluent Icons","\uE943");
17+
private readonly GlyphInfo issueGlyph = new("/Resources/#Segoe Fluent Icons", "\ued15");
18+
private readonly GlyphInfo manifestGlyph = new("/Resources/#Segoe Fluent Icons", "\uea37");
19+
1620
public List<Result> LoadContextMenus(Result selectedResult)
1721
{
1822
if(selectedResult.ContextData is not UserPlugin pluginManifestInfo)
@@ -36,6 +40,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
3640
Title = Context.API.GetTranslation("plugin_pluginsmanager_plugin_contextmenu_gotosourcecode_title"),
3741
SubTitle = Context.API.GetTranslation("plugin_pluginsmanager_plugin_contextmenu_gotosourcecode_subtitle"),
3842
IcoPath = "Images\\sourcecode.png",
43+
Glyph = sourcecodeGlyph,
3944
Action = _ =>
4045
{
4146
Context.API.OpenUrl(pluginManifestInfo.UrlSourceCode);
@@ -47,6 +52,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
4752
Title = Context.API.GetTranslation("plugin_pluginsmanager_plugin_contextmenu_newissue_title"),
4853
SubTitle = Context.API.GetTranslation("plugin_pluginsmanager_plugin_contextmenu_newissue_subtitle"),
4954
IcoPath = "Images\\request.png",
55+
Glyph = issueGlyph,
5056
Action = _ =>
5157
{
5258
// standard UrlSourceCode format in PluginsManifest's plugins.json file: https://github.com/jjw24/Flow.Launcher.Plugin.Putty/tree/master
@@ -63,6 +69,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
6369
Title = Context.API.GetTranslation("plugin_pluginsmanager_plugin_contextmenu_pluginsmanifest_title"),
6470
SubTitle = Context.API.GetTranslation("plugin_pluginsmanager_plugin_contextmenu_pluginsmanifest_subtitle"),
6571
IcoPath = "Images\\manifestsite.png",
72+
Glyph = manifestGlyph,
6673
Action = _ =>
6774
{
6875
Context.API.OpenUrl("https://github.com/Flow-Launcher/Flow.Launcher.PluginsManifest");

0 commit comments

Comments
 (0)