Skip to content

Commit 9be7322

Browse files
committed
Add icons / Change "Flow Launcher Settings" to "Settings" in context menu
1 parent 016f92a commit 9be7322

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

Flow.Launcher/Languages/en.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<system:String x:Key="PositionResetToolTip">Reset search window position</system:String>
2828

2929
<!-- Setting General -->
30-
<system:String x:Key="flowlauncher_settings">Flow Launcher Settings</system:String>
30+
<system:String x:Key="flowlauncher_settings">Settings</system:String>
3131
<system:String x:Key="general">General</system:String>
3232
<system:String x:Key="portableMode">Portable Mode</system:String>
3333
<system:String x:Key="portableModeToolTIp">Store all settings and user data in one folder (Useful when used with removable drives or cloud services).</system:String>

Flow.Launcher/MainWindow.xaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,16 @@
229229
Margin="0"
230230
Padding="0,4,0,4"
231231
Background="{DynamicResource ContextSeparator}" />
232-
<MenuItem Click="OnContextMenusForSettingsClick" Header="{DynamicResource flowlauncher_settings}" />
233-
<MenuItem Command="{Binding EscCommand}" Header="{DynamicResource closeWindow}" />
232+
<MenuItem Click="OnContextMenusForSettingsClick" Header="{DynamicResource flowlauncher_settings}">
233+
<MenuItem.Icon>
234+
<ui:FontIcon Glyph="&#xe713;" />
235+
</MenuItem.Icon>
236+
</MenuItem>
237+
<MenuItem Command="{Binding EscCommand}" Header="{DynamicResource closeWindow}">
238+
<MenuItem.Icon>
239+
<ui:FontIcon Glyph="&#xe711;" />
240+
</MenuItem.Icon>
241+
</MenuItem>
234242
</ContextMenu>
235243
</TextBox.ContextMenu>
236244
</TextBox>

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,11 @@ private void InitializeNotifyIcon()
256256
Header = InternationalizationManager.Instance.GetTranslation("GameMode"),
257257
Icon = gamemodeIcon
258258
};
259+
var positionresetIcon = new FontIcon { Glyph = "\ue73f" };
259260
var positionreset = new MenuItem
260261
{
261-
Header = InternationalizationManager.Instance.GetTranslation("PositionReset")
262+
Header = InternationalizationManager.Instance.GetTranslation("PositionReset"),
263+
Icon = positionresetIcon
262264
};
263265
var settingsIcon = new FontIcon { Glyph = "\ue713" };
264266
var settings = new MenuItem

0 commit comments

Comments
 (0)