From f991d91b8ffbdebc23caa2e03955d10fe7776c3f Mon Sep 17 00:00:00 2001 From: DB P Date: Wed, 25 Jun 2025 21:14:03 +0900 Subject: [PATCH] Improved File Rename Feature and Icon Update - ContextMenu.cs: Updated icon paths and glyphs - en.xaml: Improved readability by refining text and adding comments - Constants.cs: Added image path constants for the file rename feature - RenameFile.xaml: Adjusted window size and improved alignment of UI elements - rename.png: Added new icon image --- .../ContextMenu.cs | 4 +- .../Images/rename.png | Bin 0 -> 514 bytes .../Languages/en.xaml | 6 +- .../Search/Constants.cs | 1 + .../Views/RenameFile.xaml | 53 ++++++++---------- 5 files changed, 29 insertions(+), 35 deletions(-) create mode 100644 Plugins/Flow.Launcher.Plugin.Explorer/Images/rename.png diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs index 79d133181..f01852b43 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/ContextMenu.cs @@ -215,8 +215,8 @@ namespace Flow.Launcher.Plugin.Explorer }, // placeholder until real image is found - IcoPath = Constants.ShowContextMenuImagePath, - Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue70f") + IcoPath = Constants.RenameImagePath, + Glyph = new GlyphInfo(FontFamily: "/Resources/#Segoe Fluent Icons", Glyph: "\ue8ac") }); diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Images/rename.png b/Plugins/Flow.Launcher.Plugin.Explorer/Images/rename.png new file mode 100644 index 0000000000000000000000000000000000000000..ad70eb8e7b88db97972c6cefd485ded8a96ad5e4 GIT binary patch literal 514 zcmV+d0{#7oP)>FBJDAwvrO|glhXmJhfVImh<|KO*AffC{=f1 z9q49ku1#vDfsxR-W`GZ)J=4Hal3$zwLk2j#fi6v>IR+P?s>DjUY;3P}VT;KyA1N&g#bGVDz&%f5 zCsN#%*s_IRaJwEF=HrrQzsu_ab5;w^^~mN50d>;M1& literal 0 HcmV?d00001 diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml index a9e1eb69a..95b250797 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Languages/en.xaml @@ -190,15 +190,15 @@ 1 year ago {0} years ago - - New name: + + New name Rename Rename The given name: {0} was not new. {0} may not be empty. {0} is an invalid name. The specified item: {0} was not found - Open a dialog to rename this. + Open a dialog to rename this This cannot be renamed. Successfully renamed it to: {0} There is already a file with the name: {0} in this location diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Search/Constants.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Search/Constants.cs index 4bddfd9b2..16a557af7 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Search/Constants.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Search/Constants.cs @@ -17,6 +17,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search internal const string QuickAccessImagePath = "Images\\quickaccess.png"; internal const string RemoveQuickAccessImagePath = "Images\\removequickaccess.png"; internal const string ShowContextMenuImagePath = "Images\\context_menu.png"; + internal const string RenameImagePath = "Images\\rename.png"; internal const string EverythingErrorImagePath = "Images\\everything_error.png"; internal const string IndexSearchWarningImagePath = "Images\\index_error.png"; internal const string WindowsIndexErrorImagePath = "Images\\index_error2.png"; diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Views/RenameFile.xaml b/Plugins/Flow.Launcher.Plugin.Explorer/Views/RenameFile.xaml index 64a8f4538..0f1c5578a 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Views/RenameFile.xaml +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Views/RenameFile.xaml @@ -6,8 +6,8 @@ xmlns:local="clr-namespace:Flow.Launcher.Plugin.Explorer.Views" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Title="{DynamicResource plugin_explorer_manageactionkeywords_header}" - Width="Auto" - Height="160" + Height="180" + MaxWidth="600" Background="{DynamicResource PopuBGColor}" DataContext="{Binding RelativeSource={RelativeSource Self}}" Foreground="{DynamicResource PopupTextColor}" @@ -16,24 +16,23 @@ WindowStartupLocation="CenterScreen" mc:Ignorable="d"> - + - - + + - - - - - + + + + +