Skip to content

Commit bcc29ce

Browse files
Merge pull request #1996 from VictoriousRaptor/Amend1978
Amend 1978
2 parents 109796c + 68f2af6 commit bcc29ce

File tree

4 files changed

+23
-25
lines changed

4 files changed

+23
-25
lines changed

Flow.Launcher/Languages/en.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<system:String x:Key="SearchWindowScreenFocus">Monitor with Focused Window</system:String>
4444
<system:String x:Key="SearchWindowScreenPrimary">Primary Monitor</system:String>
4545
<system:String x:Key="SearchWindowScreenCustom">Custom Monitor</system:String>
46+
<system:String x:Key="SearchWindowAlign">Search Window Position on Monitor</system:String>
4647
<system:String x:Key="SearchWindowAlignCenter">Center</system:String>
4748
<system:String x:Key="SearchWindowAlignCenterTop">Center Top</system:String>
4849
<system:String x:Key="SearchWindowAlignLeftTop">Left Top</system:String>

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@
1717
using KeyEventArgs = System.Windows.Input.KeyEventArgs;
1818
using NotifyIcon = System.Windows.Forms.NotifyIcon;
1919
using Flow.Launcher.Infrastructure;
20-
using System.Windows.Media;
2120
using Flow.Launcher.Infrastructure.Hotkey;
2221
using Flow.Launcher.Plugin.SharedCommands;
2322
using System.Windows.Threading;
2423
using System.Windows.Data;
2524
using ModernWpf.Controls;
2625
using Key = System.Windows.Input.Key;
2726
using System.Media;
28-
using System.Linq;
2927

3028
namespace Flow.Launcher
3129
{

Flow.Launcher/SettingWindow.xaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -774,19 +774,19 @@
774774

775775
<ItemsControl Style="{StaticResource SettingGrid}">
776776
<StackPanel Style="{StaticResource TextPanel}">
777-
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="Search Window position on selected screen" />
777+
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource SearchWindowAlign}" />
778778
</StackPanel>
779779
<StackPanel Grid.Column="2" Orientation="Horizontal">
780780
<ComboBox
781-
x:Name="SearchWindowPosition"
782-
MinWidth="160"
783-
Margin="0,0,18,0"
784-
VerticalAlignment="Center"
785-
DisplayMemberPath="Display"
786-
FontSize="14"
787-
ItemsSource="{Binding SearchWindowAligns}"
788-
SelectedValue="{Binding Settings.SearchWindowAlign}"
789-
SelectedValuePath="Value">
781+
x:Name="SearchWindowPosition"
782+
MinWidth="160"
783+
Margin="0,0,18,0"
784+
VerticalAlignment="Center"
785+
DisplayMemberPath="Display"
786+
FontSize="14"
787+
ItemsSource="{Binding SearchWindowAligns}"
788+
SelectedValue="{Binding Settings.SearchWindowAlign}"
789+
SelectedValuePath="Value">
790790
</ComboBox>
791791
<StackPanel Margin="0,0,18,0" Orientation="Horizontal">
792792
<StackPanel.Style>
@@ -800,20 +800,20 @@
800800
</Style>
801801
</StackPanel.Style>
802802
<TextBox
803-
Height="35"
804-
MinWidth="120"
805-
Text="{Binding Settings.CustomWindowLeft}"
806-
TextWrapping="NoWrap" />
803+
Height="35"
804+
MinWidth="80"
805+
Text="{Binding Settings.CustomWindowLeft}"
806+
TextWrapping="NoWrap" />
807807
<TextBlock
808-
Margin="10"
809-
VerticalAlignment="Center"
810-
Foreground="{DynamicResource Color05B}"
811-
Text="x" />
808+
Margin="10"
809+
VerticalAlignment="Center"
810+
Foreground="{DynamicResource Color05B}"
811+
Text="x" />
812812
<TextBox
813-
Height="35"
814-
MinWidth="120"
815-
Text="{Binding Settings.CustomWindowTop}"
816-
TextWrapping="NoWrap" />
813+
Height="35"
814+
MinWidth="80"
815+
Text="{Binding Settings.CustomWindowTop}"
816+
TextWrapping="NoWrap" />
817817
</StackPanel>
818818
</StackPanel>
819819
<TextBlock Style="{StaticResource Glyph}">

Flow.Launcher/ViewModel/SettingWindowViewModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
using System.Collections.ObjectModel;
2323
using CommunityToolkit.Mvvm.Input;
2424
using System.Globalization;
25-
using static Flow.Launcher.ViewModel.SettingWindowViewModel;
2625

2726
namespace Flow.Launcher.ViewModel
2827
{

0 commit comments

Comments
 (0)