Skip to content

Commit 5236279

Browse files
committed
Merge branch 'QuickSizeAdjust' of https://github.com/onesounds/Flow.Launcher into QuickSizeAdjust
2 parents 833857d + 5164c18 commit 5236279

File tree

100 files changed

+1236
-520
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1236
-520
lines changed

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "nuget" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+
ignore:
13+
- dependency-name: "squirrel-windows"
14+
reviewers:
15+
- "jjw24"
16+
- "taooceros"
17+
- "JohnTheGr8"

Flow.Launcher.Core/Flow.Launcher.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<ItemGroup>
5656
<PackageReference Include="Droplex" Version="1.4.1" />
57-
<PackageReference Include="FSharp.Core" Version="5.0.2" />
57+
<PackageReference Include="FSharp.Core" Version="6.0.6" />
5858
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="2.1.3" />
5959
<PackageReference Include="squirrel.windows" Version="1.5.2" NoWarn="NU1701" />
6060
</ItemGroup>

Flow.Launcher.Core/Updater.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public string NewVersinoTips(string version)
141141
{
142142
var translater = InternationalizationManager.Instance;
143143
var tips = string.Format(translater.GetTranslation("newVersionTips"), version);
144+
144145
return tips;
145146
}
146147

Flow.Launcher.Infrastructure/Flow.Launcher.Infrastructure.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<PrivateAssets>all</PrivateAssets>
5454
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5555
</PackageReference>
56-
<PackageReference Include="Microsoft.VisualStudio.Threading" Version="16.10.56" />
56+
<PackageReference Include="Microsoft.VisualStudio.Threading" Version="17.3.44" />
5757
<PackageReference Include="NLog" Version="4.7.10" />
5858
<PackageReference Include="NLog.Schema" Version="4.7.10" />
5959
<PackageReference Include="NLog.Web.AspNetCore" Version="4.13.0" />

Flow.Launcher.Infrastructure/UserSettings/Settings.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Collections.ObjectModel;
44
using System.Drawing;
@@ -43,6 +43,11 @@ public string Language
4343
public bool UseSound { get; set; } = true;
4444
public bool FirstLaunch { get; set; } = true;
4545

46+
public double SettingWindowWidth { get; set; } = 1000;
47+
public double SettingWindowHeight { get; set; } = 700;
48+
public double SettingWindowTop { get; set; }
49+
public double SettingWindowLeft { get; set; }
50+
4651
public int CustomExplorerIndex { get; set; } = 0;
4752

4853
[JsonIgnore]
@@ -220,4 +225,4 @@ public enum ColorSchemes
220225
Light,
221226
Dark
222227
}
223-
}
228+
}

Flow.Launcher.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Microsoft Visual Studio Solution File, Format Version 12.00
2-
# Visual Studio Version 16
3-
VisualStudioVersion = 16.0.29806.167
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.3.32901.215
44
MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Test", "Flow.Launcher.Test\Flow.Launcher.Test.csproj", "{FF742965-9A80-41A5-B042-D6C7D3A21708}"
66
ProjectSection(ProjectDependencies) = postProject

Flow.Launcher/Converters/OpenResultHotkeyVisibilityConverter.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ namespace Flow.Launcher.Converters
1111
[ValueConversion(typeof(bool), typeof(Visibility))]
1212
public class OpenResultHotkeyVisibilityConverter : IValueConverter
1313
{
14-
private const int MaxVisibleHotkeys = 9;
14+
private const int MaxVisibleHotkeys = 10;
1515

1616
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
1717
{
18-
var hotkeyNumber = int.MaxValue;
18+
var number = int.MaxValue;
1919

2020
if (value is ListBoxItem listBoxItem
2121
&& ItemsControl.ItemsControlFromItemContainer(listBoxItem) is ListBox listBox)
22-
hotkeyNumber = listBox.ItemContainerGenerator.IndexFromContainer(listBoxItem) + 1;
22+
number = listBox.ItemContainerGenerator.IndexFromContainer(listBoxItem) + 1;
2323

24-
return hotkeyNumber <= MaxVisibleHotkeys ? Visibility.Visible : Visibility.Collapsed;
24+
return number <= MaxVisibleHotkeys ? Visibility.Visible : Visibility.Collapsed;
2525
}
2626

2727
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => throw new System.InvalidOperationException();

Flow.Launcher/Converters/OrdinalConverter.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ public object Convert(object value, System.Type targetType, object parameter, Cu
1010
{
1111
if (value is ListBoxItem listBoxItem
1212
&& ItemsControl.ItemsControlFromItemContainer(listBoxItem) is ListBox listBox)
13-
return listBox.ItemContainerGenerator.IndexFromContainer(listBoxItem) + 1;
13+
{
14+
var res = listBox.ItemContainerGenerator.IndexFromContainer(listBoxItem) + 1;
15+
return res == 10 ? 0 : res; // 10th item => HOTKEY+0
16+
}
1417

1518
return 0;
1619
}

Flow.Launcher/Languages/da.xaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
<system:String x:Key="selectPythonDirectory">Vælg</system:String>
5151
<system:String x:Key="hideOnStartup">Skjul Flow Launcher ved opstart</system:String>
5252
<system:String x:Key="hideNotifyIcon">Hide tray icon</system:String>
53+
<system:String x:Key="hideNotifyIconToolTip">When the icon is hidden from the tray, the Settings menu can be opened by right-clicking on the search window.</system:String>
5354
<system:String x:Key="querySearchPrecision">Query Search Precision</system:String>
5455
<system:String x:Key="querySearchPrecisionToolTip">Changes minimum match score required for results.</system:String>
5556
<system:String x:Key="ShouldUsePinyin">Should Use Pinyin</system:String>
@@ -69,12 +70,14 @@
6970
<system:String x:Key="currentPriority">Current Priority</system:String>
7071
<system:String x:Key="newPriority">New Priority</system:String>
7172
<system:String x:Key="priority">Priority</system:String>
73+
<system:String x:Key="priorityToolTip">Change Plugin Results Priority</system:String>
7274
<system:String x:Key="pluginDirectory">Plugin bibliotek</system:String>
7375
<system:String x:Key="author">af</system:String>
7476
<system:String x:Key="plugin_init_time">Initaliseringstid:</system:String>
7577
<system:String x:Key="plugin_query_time">Søgetid:</system:String>
7678
<system:String x:Key="plugin_query_version">| Version</system:String>
7779
<system:String x:Key="plugin_query_web">Website</system:String>
80+
<system:String x:Key="plugin_uninstall">Uninstall</system:String>
7881

7982

8083
<!-- Setting Plugin Store -->
@@ -155,11 +158,13 @@
155158
Download updates failed, please check your connection and proxy settings to github-cloud.s3.amazonaws.com,
156159
or go to https://github.com/Flow-Launcher/Flow.Launcher/releases to download updates manually.
157160
</system:String>
158-
<system:String x:Key="releaseNotes">Release Notes:</system:String>
161+
<system:String x:Key="releaseNotes">Release Notes</system:String>
159162
<system:String x:Key="documentation">Usage Tips</system:String>
160163
<system:String x:Key="devtool">DevTools</system:String>
161164
<system:String x:Key="settingfolder">Setting Folder</system:String>
162165
<system:String x:Key="logfolder">Log Folder</system:String>
166+
<system:String x:Key="clearlogfolder">Clear Logs</system:String>
167+
<system:String x:Key="clearlogfolderMessage">Are you sure you want to delete all logs?</system:String>
163168
<system:String x:Key="welcomewindow">Wizard</system:String>
164169

165170
<!-- FileManager Setting Dialog -->

Flow.Launcher/Languages/de.xaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
<system:String x:Key="selectPythonDirectory">Auswählen</system:String>
5151
<system:String x:Key="hideOnStartup">Verstecke Flow Launcher bei Systemstart</system:String>
5252
<system:String x:Key="hideNotifyIcon">Statusleistensymbol ausblenden</system:String>
53+
<system:String x:Key="hideNotifyIconToolTip">When the icon is hidden from the tray, the Settings menu can be opened by right-clicking on the search window.</system:String>
5354
<system:String x:Key="querySearchPrecision">Suchgenauigkeit abfragen</system:String>
5455
<system:String x:Key="querySearchPrecisionToolTip">Erforderliche Suchergebnisse.</system:String>
5556
<system:String x:Key="ShouldUsePinyin">Pinyin aktivieren</system:String>
@@ -69,12 +70,14 @@
6970
<system:String x:Key="currentPriority">Aktuelle Priorität</system:String>
7071
<system:String x:Key="newPriority">Neue Priorität</system:String>
7172
<system:String x:Key="priority">Priorität</system:String>
73+
<system:String x:Key="priorityToolTip">Change Plugin Results Priority</system:String>
7274
<system:String x:Key="pluginDirectory">Pluginordner</system:String>
7375
<system:String x:Key="author">von</system:String>
7476
<system:String x:Key="plugin_init_time">Initialisierungszeit:</system:String>
7577
<system:String x:Key="plugin_query_time">Abfragezeit:</system:String>
7678
<system:String x:Key="plugin_query_version">Version</system:String>
7779
<system:String x:Key="plugin_query_web">Webseite</system:String>
80+
<system:String x:Key="plugin_uninstall">Deinstallieren</system:String>
7881

7982

8083
<!-- Setting Plugin Store -->
@@ -155,11 +158,13 @@
155158
Download updates failed, please check your connection and proxy settings to github-cloud.s3.amazonaws.com,
156159
or go to https://github.com/Flow-Launcher/Flow.Launcher/releases to download updates manually.
157160
</system:String>
158-
<system:String x:Key="releaseNotes">Versionshinweise:</system:String>
161+
<system:String x:Key="releaseNotes">Versionshinweise</system:String>
159162
<system:String x:Key="documentation">Usage Tips</system:String>
160163
<system:String x:Key="devtool">DevTools</system:String>
161164
<system:String x:Key="settingfolder">Setting Folder</system:String>
162165
<system:String x:Key="logfolder">Log Folder</system:String>
166+
<system:String x:Key="clearlogfolder">Clear Logs</system:String>
167+
<system:String x:Key="clearlogfolderMessage">Are you sure you want to delete all logs?</system:String>
163168
<system:String x:Key="welcomewindow">Wizard</system:String>
164169

165170
<!-- FileManager Setting Dialog -->

0 commit comments

Comments
 (0)