Skip to content

Commit 9487aa0

Browse files
authored
Merge branch 'dev' into UpdateWording
2 parents 24d255a + 87eca00 commit 9487aa0

File tree

14 files changed

+884
-369
lines changed

14 files changed

+884
-369
lines changed

Flow.Launcher.Infrastructure/Constant.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Diagnostics;
1+
using System.Diagnostics;
22
using System.IO;
33
using System.Reflection;
44

@@ -21,6 +21,7 @@ public static class Constant
2121
public static readonly string PreinstalledDirectory = Path.Combine(ProgramDirectory, Plugins);
2222
public const string Issue = "https://github.com/Flow-Launcher/Flow.Launcher/issues/new";
2323
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location.NonNull()).ProductVersion;
24+
public static readonly string Dev = "Dev";
2425
public const string Documentation = "https://flowlauncher.com/docs/#/usage-tips";
2526

2627
public static readonly int ThumbnailSize = 64;

Flow.Launcher/HotkeyControl.xaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@
3838
FontSize="13"
3939
FontWeight="SemiBold"
4040
Foreground="{DynamicResource Color05B}"
41-
Visibility="Visible">
42-
Press key
43-
</TextBlock>
41+
Text="{DynamicResource flowlauncherPressHotkey}"
42+
Visibility="Visible" />
4443
</Border>
4544
</Popup>
4645

@@ -49,8 +48,8 @@
4948
Margin="0,0,18,0"
5049
VerticalContentAlignment="Center"
5150
input:InputMethod.IsInputMethodEnabled="False"
51+
LostFocus="tbHotkey_LostFocus"
5252
PreviewKeyDown="TbHotkey_OnPreviewKeyDown"
53-
TabIndex="100"
54-
LostFocus="tbHotkey_LostFocus"/>
53+
TabIndex="100" />
5554
</Grid>
5655
</UserControl>

Flow.Launcher/HotkeyControl.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Flow.Launcher.Infrastructure.Hotkey;
1010
using Flow.Launcher.Plugin;
1111
using System.Threading;
12+
using System.Windows.Interop;
1213

1314
namespace Flow.Launcher
1415
{
@@ -113,7 +114,7 @@ public Task SetHotkeyAsync(string keyStr, bool triggerValidate = true)
113114
private void tbHotkey_LostFocus(object sender, RoutedEventArgs e)
114115
{
115116
tbMsg.Text = tbMsgTextOriginal;
116-
tbMsg.Foreground = tbMsgForegroundColorOriginal;
117+
tbMsg.SetResourceReference(TextBox.ForegroundProperty, "Color05B");
117118
}
118119
}
119120
}

Flow.Launcher/Languages/en.xaml

Lines changed: 4 additions & 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>
@@ -146,6 +146,7 @@
146146
<system:String x:Key="showOpenResultHotkeyToolTip">Show result selection hotkey with results.</system:String>
147147
<system:String x:Key="customQueryHotkey">Custom Query Hotkey</system:String>
148148
<system:String x:Key="customQueryShortcut">Custom Query Shortcut</system:String>
149+
<system:String x:Key="builtinShortcuts">Built-in Shortcuts</system:String>
149150
<system:String x:Key="customQuery">Query</system:String>
150151
<system:String x:Key="customShortcut">Shortcut</system:String>
151152
<system:String x:Key="customShortcutExpansion">Expanded</system:String>
@@ -163,6 +164,7 @@
163164
<system:String x:Key="windowWidthSizeToolTip">You can also quickly adjust this by using Ctrl+[ and Ctrl+].</system:String>
164165
<system:String x:Key="useGlyphUI">Use Segoe Fluent Icons</system:String>
165166
<system:String x:Key="useGlyphUIEffect">Use Segoe Fluent Icons for query results where supported</system:String>
167+
<system:String x:Key="flowlauncherPressHotkey">Press Key</system:String>
166168

167169
<!-- Setting Proxy -->
168170
<system:String x:Key="proxy">HTTP Proxy</system:String>
@@ -186,6 +188,7 @@
186188
<system:String x:Key="github">Github</system:String>
187189
<system:String x:Key="docs">Docs</system:String>
188190
<system:String x:Key="version">Version</system:String>
191+
<system:String x:Key="icons">Icons</system:String>
189192
<system:String x:Key="about_activate_times">You have activated Flow Launcher {0} times</system:String>
190193
<system:String x:Key="checkUpdates">Check for Updates</system:String>
191194
<system:String x:Key="newVersionTips">New version {0} is available, would you like to restart Flow Launcher to use the update?</system:String>

0 commit comments

Comments
 (0)