mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
update variable names to SearchWindowPosition
This commit is contained in:
parent
2f1dba8345
commit
bcaa25ae03
6 changed files with 28 additions and 28 deletions
|
|
@ -199,7 +199,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
|
|||
}
|
||||
public bool LeaveCmdOpen { get; set; }
|
||||
public bool HideWhenDeactive { get; set; } = true;
|
||||
public LauncherPositions LauncherPosition { get; set; } = LauncherPositions.MouseScreenCenter;
|
||||
public SearchWindowPositions SearchWindowPosition { get; set; } = SearchWindowPositions.MouseScreenCenter;
|
||||
public bool IgnoreHotkeysOnFullscreen { get; set; }
|
||||
|
||||
public HttpProxy Proxy { get; set; } = new HttpProxy();
|
||||
|
|
@ -225,7 +225,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
|
|||
Light,
|
||||
Dark
|
||||
}
|
||||
public enum LauncherPositions
|
||||
public enum SearchWindowPositions
|
||||
{
|
||||
RememberLastLaunchLocation,
|
||||
MouseScreenCenter,
|
||||
|
|
|
|||
|
|
@ -35,13 +35,13 @@
|
|||
<system:String x:Key="setAutoStartFailed">Error setting launch on startup</system:String>
|
||||
<system:String x:Key="hideFlowLauncherWhenLoseFocus">Hide Flow Launcher when focus is lost</system:String>
|
||||
<system:String x:Key="dontPromptUpdateMsg">Do not show new version notifications</system:String>
|
||||
<system:String x:Key="LauncherPosition">Launcher Position</system:String>
|
||||
<system:String x:Key="SearchWindowPosition">Search Window Position</system:String>
|
||||
<system:String x:Key="rememberLastLocation">Remember last launch location</system:String>
|
||||
<system:String x:Key="LauncherPositionRememberLastLaunchLocation">Remember Last Location</system:String>
|
||||
<system:String x:Key="LauncherPositionMouseScreenCenter">Mouse Focused Screen - Center</system:String>
|
||||
<system:String x:Key="LauncherPositionMouseScreenCenterTop">Mouse Focused Screen - Center Top</system:String>
|
||||
<system:String x:Key="LauncherPositionMouseScreenLeftTop">Mouse Focused Screen - Left Top</system:String>
|
||||
<system:String x:Key="LauncherPositionMouseScreenRightTop">Mouse Focused Screen - Right Top</system:String>
|
||||
<system:String x:Key="SearchWindowPositionRememberLastLaunchLocation">Remember Last Location</system:String>
|
||||
<system:String x:Key="SearchWindowPositionMouseScreenCenter">Mouse Focused Screen - Center</system:String>
|
||||
<system:String x:Key="SearchWindowPositionMouseScreenCenterTop">Mouse Focused Screen - Center Top</system:String>
|
||||
<system:String x:Key="SearchWindowPositionMouseScreenLeftTop">Mouse Focused Screen - Left Top</system:String>
|
||||
<system:String x:Key="SearchWindowPositionMouseScreenRightTop">Mouse Focused Screen - Right Top</system:String>
|
||||
<system:String x:Key="language">Language</system:String>
|
||||
<system:String x:Key="lastQueryMode">Last Query Style</system:String>
|
||||
<system:String x:Key="lastQueryModeToolTip">Show/Hide previous results when Flow Launcher is reactivated.</system:String>
|
||||
|
|
|
|||
|
|
@ -189,25 +189,25 @@ namespace Flow.Launcher
|
|||
|
||||
private void InitializePosition()
|
||||
{
|
||||
switch (_settings.LauncherPosition)
|
||||
switch (_settings.SearchWindowPosition)
|
||||
{
|
||||
case LauncherPositions.RememberLastLaunchLocation:
|
||||
case SearchWindowPositions.RememberLastLaunchLocation:
|
||||
Top = _settings.WindowTop;
|
||||
Left = _settings.WindowLeft;
|
||||
break;
|
||||
case LauncherPositions.MouseScreenCenter:
|
||||
case SearchWindowPositions.MouseScreenCenter:
|
||||
Left = HorizonCenter();
|
||||
Top = VerticalCenter();
|
||||
break;
|
||||
case LauncherPositions.MouseScreenCenterTop:
|
||||
case SearchWindowPositions.MouseScreenCenterTop:
|
||||
Left = HorizonCenter();
|
||||
Top = 10;
|
||||
break;
|
||||
case LauncherPositions.MouseScreenLeftTop:
|
||||
case SearchWindowPositions.MouseScreenLeftTop:
|
||||
Left = 10;
|
||||
Top = 10;
|
||||
break;
|
||||
case LauncherPositions.MouseScreenRightTop:
|
||||
case SearchWindowPositions.MouseScreenRightTop:
|
||||
Left = HorizonRight();
|
||||
Top = 10;
|
||||
break;
|
||||
|
|
@ -461,7 +461,7 @@ namespace Flow.Launcher
|
|||
{
|
||||
if (_animating)
|
||||
return;
|
||||
if (_settings.LauncherPosition == LauncherPositions.RememberLastLaunchLocation)
|
||||
if (_settings.SearchWindowPosition == SearchWindowPositions.RememberLastLaunchLocation)
|
||||
{
|
||||
_settings.WindowLeft = Left;
|
||||
_settings.WindowTop = Top;
|
||||
|
|
|
|||
|
|
@ -688,20 +688,20 @@
|
|||
<Border Margin="0,30,0,0" Style="{DynamicResource SettingGroupBox}">
|
||||
<ItemsControl Style="{StaticResource SettingGrid}">
|
||||
<StackPanel Style="{StaticResource TextPanel}">
|
||||
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource LauncherPosition}" />
|
||||
<TextBlock Style="{DynamicResource SettingTitleLabel}" Text="{DynamicResource SearchWindowPosition}" />
|
||||
</StackPanel>
|
||||
<ComboBox
|
||||
x:Name="LauncherPosition"
|
||||
x:Name="SearchWindowPosition"
|
||||
Grid.Column="2"
|
||||
MinWidth="220"
|
||||
Margin="0,0,18,0"
|
||||
VerticalAlignment="Center"
|
||||
DisplayMemberPath="Display"
|
||||
FontSize="14"
|
||||
ItemsSource="{Binding LauncherPositions}"
|
||||
SelectedValue="{Binding Settings.LauncherPosition}"
|
||||
ItemsSource="{Binding SearchWindowPositions}"
|
||||
SelectedValue="{Binding Settings.SearchWindowPosition}"
|
||||
SelectedValuePath="Value"
|
||||
SelectionChanged="LauncherPositionSelectedIndexChanged" />
|
||||
SelectionChanged="SearchWindowPositionSelectedIndexChanged" />
|
||||
<TextBlock Style="{StaticResource Glyph}">
|
||||

|
||||
</TextBlock>
|
||||
|
|
|
|||
|
|
@ -435,7 +435,7 @@ namespace Flow.Launcher
|
|||
pluginFilterTxb.Focus();
|
||||
}
|
||||
|
||||
private void LauncherPositionSelectedIndexChanged(object sender, SelectionChangedEventArgs e)
|
||||
private void SearchWindowPositionSelectedIndexChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -387,23 +387,23 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
|
||||
|
||||
public class LauncherPosition
|
||||
public class SearchWindowPosition
|
||||
{
|
||||
public string Display { get; set; }
|
||||
public LauncherPositions Value { get; set; }
|
||||
public SearchWindowPositions Value { get; set; }
|
||||
}
|
||||
|
||||
public List<LauncherPosition> LauncherPositions
|
||||
public List<SearchWindowPosition> SearchWindowPositions
|
||||
{
|
||||
get
|
||||
{
|
||||
List<LauncherPosition> modes = new List<LauncherPosition>();
|
||||
var enums = (LauncherPositions[])Enum.GetValues(typeof(LauncherPositions));
|
||||
List<SearchWindowPosition> modes = new List<SearchWindowPosition>();
|
||||
var enums = (SearchWindowPositions[])Enum.GetValues(typeof(SearchWindowPositions));
|
||||
foreach (var e in enums)
|
||||
{
|
||||
var key = $"LauncherPosition{e}";
|
||||
var key = $"SearchWindowPosition{e}";
|
||||
var display = _translater.GetTranslation(key);
|
||||
var m = new LauncherPosition { Display = display, Value = e, };
|
||||
var m = new SearchWindowPosition { Display = display, Value = e, };
|
||||
modes.Add(m);
|
||||
}
|
||||
return modes;
|
||||
|
|
|
|||
Loading…
Reference in a new issue