From 4b0781dccb6af6e056ccf4c9ed1c0833dae6bf1f Mon Sep 17 00:00:00 2001 From: DB p Date: Mon, 12 Dec 2022 13:08:22 +0900 Subject: [PATCH] Added Glyph Icons --- .../Main.cs | 5 +++-- .../ContextMenu.cs | 18 ++++++++++++------ Plugins/Flow.Launcher.Plugin.Shell/Main.cs | 9 ++++++--- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs index f9127cd3c..d072a362d 100644 --- a/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.BrowserBookmark/Main.cs @@ -183,7 +183,8 @@ namespace Flow.Launcher.Plugin.BrowserBookmark return false; } }, - IcoPath = "Images\\copylink.png" + IcoPath = "Images\\copylink.png", + Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue8c8") } }; } @@ -200,4 +201,4 @@ namespace Flow.Launcher.Plugin.BrowserBookmark } } } -} \ No newline at end of file +} diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs index 1a6159073..6b562930e 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs @@ -82,7 +82,8 @@ namespace Flow.Launcher.Plugin.Explorer }, SubTitleToolTip = Context.API.GetTranslation("plugin_explorer_contextmenu_titletooltip"), TitleToolTip = Context.API.GetTranslation("plugin_explorer_contextmenu_titletooltip"), - IcoPath = Constants.QuickAccessImagePath + IcoPath = Constants.QuickAccessImagePath, + Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue718"), }); } else @@ -107,7 +108,8 @@ namespace Flow.Launcher.Plugin.Explorer }, SubTitleToolTip = Context.API.GetTranslation("plugin_explorer_contextmenu_remove_titletooltip"), TitleToolTip = Context.API.GetTranslation("plugin_explorer_contextmenu_remove_titletooltip"), - IcoPath = Constants.RemoveQuickAccessImagePath + IcoPath = Constants.RemoveQuickAccessImagePath, + Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\uecc9") }); } @@ -130,7 +132,8 @@ namespace Flow.Launcher.Plugin.Explorer return false; } }, - IcoPath = Constants.CopyImagePath + IcoPath = Constants.CopyImagePath, + Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue8c8") }); contextMenus.Add(new Result @@ -156,7 +159,8 @@ namespace Flow.Launcher.Plugin.Explorer } }, - IcoPath = icoPath + IcoPath = icoPath, + Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\uf12b") }); @@ -199,7 +203,8 @@ namespace Flow.Launcher.Plugin.Explorer return true; }, - IcoPath = Constants.DeleteFileFolderImagePath + IcoPath = Constants.DeleteFileFolderImagePath, + Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue74d") }); if (record.Type is not ResultType.Volume) @@ -297,7 +302,8 @@ namespace Flow.Launcher.Plugin.Explorer return true; }, - IcoPath = Constants.FolderImagePath + IcoPath = Constants.FolderImagePath, + Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue838") }; } diff --git a/Plugins/Flow.Launcher.Plugin.Shell/Main.cs b/Plugins/Flow.Launcher.Plugin.Shell/Main.cs index 9f822ea47..351f0b2d8 100644 --- a/Plugins/Flow.Launcher.Plugin.Shell/Main.cs +++ b/Plugins/Flow.Launcher.Plugin.Shell/Main.cs @@ -381,7 +381,8 @@ namespace Flow.Launcher.Plugin.Shell Execute(ShellCommand.RunAsDifferentUser, PrepareProcessStartInfo(selectedResult.Title)); return true; }, - IcoPath = "Images/user.png" + IcoPath = "Images/user.png", + Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\xe7ee") }, new Result { @@ -391,7 +392,8 @@ namespace Flow.Launcher.Plugin.Shell Execute(Process.Start, PrepareProcessStartInfo(selectedResult.Title, true)); return true; }, - IcoPath = "Images/admin.png" + IcoPath = "Images/admin.png", + Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\xe7ef") }, new Result { @@ -401,7 +403,8 @@ namespace Flow.Launcher.Plugin.Shell Clipboard.SetDataObject(selectedResult.Title); return true; }, - IcoPath = "Images/copy.png" + IcoPath = "Images/copy.png", + Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\xe8c8") } };