@@ -13,6 +13,10 @@ public ContextMenu(PluginInitContext context)
13
13
Context = context ;
14
14
}
15
15
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
+
16
20
public List < Result > LoadContextMenus ( Result selectedResult )
17
21
{
18
22
if ( selectedResult . ContextData is not UserPlugin pluginManifestInfo )
@@ -36,6 +40,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
36
40
Title = Context . API . GetTranslation ( "plugin_pluginsmanager_plugin_contextmenu_gotosourcecode_title" ) ,
37
41
SubTitle = Context . API . GetTranslation ( "plugin_pluginsmanager_plugin_contextmenu_gotosourcecode_subtitle" ) ,
38
42
IcoPath = "Images\\ sourcecode.png" ,
43
+ Glyph = sourcecodeGlyph ,
39
44
Action = _ =>
40
45
{
41
46
Context . API . OpenUrl ( pluginManifestInfo . UrlSourceCode ) ;
@@ -47,6 +52,7 @@ public List<Result> LoadContextMenus(Result selectedResult)
47
52
Title = Context . API . GetTranslation ( "plugin_pluginsmanager_plugin_contextmenu_newissue_title" ) ,
48
53
SubTitle = Context . API . GetTranslation ( "plugin_pluginsmanager_plugin_contextmenu_newissue_subtitle" ) ,
49
54
IcoPath = "Images\\ request.png" ,
55
+ Glyph = issueGlyph ,
50
56
Action = _ =>
51
57
{
52
58
// 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)
63
69
Title = Context . API . GetTranslation ( "plugin_pluginsmanager_plugin_contextmenu_pluginsmanifest_title" ) ,
64
70
SubTitle = Context . API . GetTranslation ( "plugin_pluginsmanager_plugin_contextmenu_pluginsmanifest_subtitle" ) ,
65
71
IcoPath = "Images\\ manifestsite.png" ,
72
+ Glyph = manifestGlyph ,
66
73
Action = _ =>
67
74
{
68
75
Context . API . OpenUrl ( "https://github.com/Flow-Launcher/Flow.Launcher.PluginsManifest" ) ;
0 commit comments