Skip to content

Commit f02a6c5

Browse files
authored
Merge branch 'dev' into administrator_mode
2 parents 7de9d25 + 1d2a7bf commit f02a6c5

File tree

17 files changed

+137
-57
lines changed

17 files changed

+137
-57
lines changed

.github/actions/spelling/expect.txt

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# This file should contain names of products, companies, or individuals that aren't in a standard dictionary (e.g., GitHub, Keptn, VSCode).
2+
13
crowdin
24
DWM
35
workflows
@@ -34,7 +36,6 @@ mscorlib
3436
pythonw
3537
dotnet
3638
winget
37-
jjw24
3839
wolframalpha
3940
gmail
4041
duckduckgo
@@ -49,15 +50,13 @@ srchadmin
4950
EWX
5051
dlgtext
5152
CMD
52-
appref-ms
5353
appref
5454
TSource
5555
runas
5656
dpi
5757
popup
5858
ptr
5959
pluginindicator
60-
TobiasSekan
6160
img
6261
resx
6362
bak
@@ -68,9 +67,6 @@ dlg
6867
ddd
6968
dddd
7069
clearlogfolder
71-
ACCENT_ENABLE_TRANSPARENTGRADIENT
72-
ACCENT_ENABLE_BLURBEHIND
73-
WCA_ACCENT_POLICY
7470
HGlobal
7571
dopusrt
7672
firefox
@@ -91,22 +87,15 @@ keyevent
9187
KListener
9288
requery
9389
vkcode
94-
čeština
9590
Polski
9691
Srpski
97-
Português
98-
Português (Brasil)
9992
Italiano
100-
Slovenský
10193
quicklook
102-
Tiếng Việt
10394
Droplex
10495
Preinstalled
10596
errormetadatafile
10697
noresult
10798
pluginsmanager
10899
alreadyexists
109-
JsonRPC
110-
JsonRPCV2
111100
Softpedia
112101
img

.github/actions/spelling/patterns.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns
2+
# This file should contain strings that contain a mix of letters and numbers, or specific symbols
3+
24

35
# Questionably acceptable forms of `in to`
46
# Personally, I prefer `log into`, but people object
@@ -121,3 +123,13 @@
121123

122124
# version suffix <word>v#
123125
(?:(?<=[A-Z]{2})V|(?<=[a-z]{2}|[A-Z]{2})v)\d+(?:\b|(?=[a-zA-Z_]))
126+
127+
\bjjw24\b
128+
\bappref-ms\b
129+
\bTobiasSekan\b
130+
\bJsonRPC\b
131+
\bJsonRPCV2\b
132+
\bTiếng Việt\b
133+
\bPortuguês (Brasil)\b
134+
\bčeština\b
135+
\bPortuguês\b

Flow.Launcher/ReleaseNotesWindow.xaml.cs

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -189,31 +189,46 @@ private static async Task<string> GetReleaseNotesMarkdownAsync()
189189
var releases = JsonSerializer.Deserialize<List<GitHubReleaseInfo>>(releaseNotesJSON);
190190

191191
// Get the latest releases
192-
var latestReleases = releases.OrderByDescending(release => release.PublishedDate).Take(3);
192+
var latestReleases = releases.OrderByDescending(release => release.PublishedDate).Take(3).ToList();
193193

194194
// Build the release notes in Markdown format
195195
var releaseNotesHtmlBuilder = new StringBuilder(string.Empty);
196-
foreach (var release in latestReleases)
196+
197+
for (int i = 0; i < latestReleases.Count; i++)
197198
{
199+
var release = latestReleases[i];
198200
releaseNotesHtmlBuilder.AppendLine("# " + release.Name);
199201

200202
// Because MdXaml.Html package cannot correctly render images without units,
201203
// We need to manually add unit for images
202204
// E.g. Replace <img src="..." width="500"> with <img src="..." width="500px">
203205
var notes = ImageUnitRegex().Replace(release.ReleaseNotes, m =>
204-
{
205-
var prefix = m.Groups[1].Value;
206-
var widthValue = m.Groups[2].Value;
207-
var quote = m.Groups[3].Value;
208-
var suffix = m.Groups[4].Value;
209-
// Only replace if width is number like 500 without units like 500px
210-
if (IsNumber(widthValue))
211-
return $"{prefix}{widthValue}px{quote}{suffix}";
212-
return m.Value;
213-
});
206+
{
207+
var prefix = m.Groups[1].Value;
208+
var widthValue = m.Groups[2].Value;
209+
var quote = m.Groups[3].Value;
210+
var suffix = m.Groups[4].Value;
211+
// Only replace if width is number like 500 without units like 500px
212+
if (IsNumber(widthValue))
213+
return $"{prefix}{widthValue}px{quote}{suffix}";
214+
return m.Value;
215+
});
214216

215217
releaseNotesHtmlBuilder.AppendLine(notes);
216218
releaseNotesHtmlBuilder.AppendLine();
219+
220+
// Add separator if it is not last release note
221+
if (i < latestReleases.Count - 1)
222+
{
223+
releaseNotesHtmlBuilder.Append("<br />");
224+
releaseNotesHtmlBuilder.Append("\n\n");
225+
226+
releaseNotesHtmlBuilder.AppendLine("---");
227+
228+
releaseNotesHtmlBuilder.Append("\n\n");
229+
releaseNotesHtmlBuilder.Append("<br />");
230+
releaseNotesHtmlBuilder.Append("\n\n");
231+
}
217232
}
218233

219234
return releaseNotesHtmlBuilder.ToString();

Flow.Launcher/Resources/Controls/Card.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,21 @@
3838
<Setter Property="Background" Value="Transparent" />
3939
</DataTrigger>
4040

41-
<DataTrigger Binding="{Binding (local:CardGroup.Position), RelativeSource={RelativeSource AncestorType=local:Card}}" Value="First">
41+
<DataTrigger Binding="{Binding Type, RelativeSource={RelativeSource AncestorType=local:Card}}" Value="First">
4242
<Setter Property="Margin" Value="0" />
4343
<Setter Property="CornerRadius" Value="0" />
4444
<Setter Property="Background" Value="Transparent" />
4545
<Setter Property="BorderThickness" Value="0" />
4646
</DataTrigger>
4747

48-
<DataTrigger Binding="{Binding (local:CardGroup.Position), RelativeSource={RelativeSource AncestorType=local:Card}}" Value="Middle">
48+
<DataTrigger Binding="{Binding Type, RelativeSource={RelativeSource AncestorType=local:Card}}" Value="Middle">
4949
<Setter Property="Margin" Value="0" />
5050
<Setter Property="CornerRadius" Value="0" />
5151
<Setter Property="Background" Value="Transparent" />
5252
<Setter Property="BorderThickness" Value="0 1 0 0" />
5353
</DataTrigger>
5454

55-
<DataTrigger Binding="{Binding (local:CardGroup.Position), RelativeSource={RelativeSource AncestorType=local:Card}}" Value="Last">
55+
<DataTrigger Binding="{Binding Type, RelativeSource={RelativeSource AncestorType=local:Card}}" Value="Last">
5656
<Setter Property="Margin" Value="0" />
5757
<Setter Property="CornerRadius" Value="0" />
5858
<Setter Property="Background" Value="Transparent" />

Flow.Launcher/Resources/Controls/Card.xaml.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ public enum CardType
99
{
1010
Default,
1111
Inside,
12-
InsideFit
12+
InsideFit,
13+
First,
14+
Middle,
15+
Last
1316
}
1417

1518
public Card()

Flow.Launcher/SettingPages/ViewModels/SettingsPaneThemeViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ public string ColorScheme
170170
"dddd dd', 'MMMM",
171171
"dd', 'MMMM",
172172
"dd.MM.yy",
173-
"dd.MM.yyyy"
173+
"dd.MM.yyyy",
174+
"dd MMMM yyyy"
174175
};
175176

176177
public string TimeFormat

Flow.Launcher/SettingPages/Views/SettingsPaneGeneral.xaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@
100100
</cc:Card>
101101

102102
<cc:CardGroup Margin="0 4 0 0">
103-
<cc:Card Title="{DynamicResource SearchWindowPosition}" Icon="&#xe7f4;">
103+
<cc:Card
104+
Title="{DynamicResource SearchWindowPosition}"
105+
Icon="&#xe7f4;"
106+
Type="First">
104107
<StackPanel Orientation="Horizontal">
105108
<ComboBox
106109
MinWidth="220"
@@ -125,6 +128,7 @@
125128
<cc:Card
126129
Title="{DynamicResource SearchWindowAlign}"
127130
Icon="&#xe7f4;"
131+
Type="Last"
128132
Visibility="{ext:CollapsedWhen {Binding Settings.SearchWindowScreen},
129133
IsEqualTo={x:Static userSettings:SearchWindowScreens.RememberLastLaunchLocation}}">
130134
<StackPanel Orientation="Horizontal">
@@ -205,7 +209,10 @@
205209
</cc:Card>
206210

207211
<cc:CardGroup Margin="0 14 0 0">
208-
<cc:Card Title="{DynamicResource querySearchPrecision}" Sub="{DynamicResource querySearchPrecisionToolTip}">
212+
<cc:Card
213+
Title="{DynamicResource querySearchPrecision}"
214+
Sub="{DynamicResource querySearchPrecisionToolTip}"
215+
Type="First">
209216
<ComboBox
210217
MaxWidth="200"
211218
DisplayMemberPath="Display"
@@ -214,7 +221,10 @@
214221
SelectedValuePath="Value" />
215222
</cc:Card>
216223

217-
<cc:Card Title="{DynamicResource lastQueryMode}" Sub="{DynamicResource lastQueryModeToolTip}">
224+
<cc:Card
225+
Title="{DynamicResource lastQueryMode}"
226+
Sub="{DynamicResource lastQueryModeToolTip}"
227+
Type="Last">
218228
<ComboBox
219229
MinWidth="210"
220230
DisplayMemberPath="Display"
@@ -384,7 +394,8 @@
384394
<cc:Card
385395
Title="{DynamicResource KoreanImeRegistry}"
386396
Icon="&#xe88b;"
387-
Sub="{DynamicResource KoreanImeRegistryTooltip}">
397+
Sub="{DynamicResource KoreanImeRegistryTooltip}"
398+
Type="First">
388399
<ui:ToggleSwitch
389400
IsOn="{Binding LegacyKoreanIMEEnabled}"
390401
OffContent="{DynamicResource disable}"
@@ -393,7 +404,8 @@
393404
<cc:Card
394405
Title="{DynamicResource KoreanImeOpenLink}"
395406
Icon="&#xF210;"
396-
Sub="{DynamicResource KoreanImeOpenLinkToolTip}">
407+
Sub="{DynamicResource KoreanImeOpenLinkToolTip}"
408+
Type="Last">
397409
<Button Command="{Binding OpenImeSettingsCommand}" Content="{DynamicResource KoreanImeOpenLinkButton}" />
398410
</cc:Card>
399411
</cc:CardGroup>

Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,21 @@
5151
</cc:Card>
5252

5353
<cc:CardGroup Margin="0 12 0 0">
54-
<cc:Card Title="{DynamicResource openResultModifiers}" Sub="{DynamicResource openResultModifiersToolTip}">
54+
<cc:Card
55+
Title="{DynamicResource openResultModifiers}"
56+
Sub="{DynamicResource openResultModifiersToolTip}"
57+
Type="First">
5558
<ComboBox
5659
Width="120"
5760
FontSize="14"
5861
ItemsSource="{Binding OpenResultModifiersList}"
5962
SelectedValue="{Binding Settings.OpenResultModifiers}" />
6063
</cc:Card>
6164

62-
<cc:Card Title="{DynamicResource showOpenResultHotkey}" Sub="{DynamicResource showOpenResultHotkeyToolTip}">
65+
<cc:Card
66+
Title="{DynamicResource showOpenResultHotkey}"
67+
Sub="{DynamicResource showOpenResultHotkeyToolTip}"
68+
Type="Last">
6369
<ui:ToggleSwitch
6470
IsOn="{Binding Settings.ShowOpenResultHotkey}"
6571
OffContent="{DynamicResource disable}"

Flow.Launcher/SettingPages/Views/SettingsPaneProxy.xaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,35 @@
3232
TextAlignment="left" />
3333

3434
<cc:CardGroup>
35-
<cc:Card Title="{DynamicResource enableProxy}">
35+
<cc:Card Title="{DynamicResource enableProxy}" Type="First">
3636
<ui:ToggleSwitch
3737
IsOn="{Binding Settings.Proxy.Enabled}"
3838
OffContent="{DynamicResource disable}"
3939
OnContent="{DynamicResource enable}" />
4040
</cc:Card>
4141

42-
<cc:Card Title="{DynamicResource server}">
42+
<cc:Card Title="{DynamicResource server}" Type="Middle">
4343
<TextBox
4444
Width="300"
4545
IsEnabled="{Binding Settings.Proxy.Enabled}"
4646
Text="{Binding Settings.Proxy.Server}" />
4747
</cc:Card>
4848

49-
<cc:Card Title="{DynamicResource port}">
49+
<cc:Card Title="{DynamicResource port}" Type="Middle">
5050
<TextBox
5151
Width="100"
5252
IsEnabled="{Binding Settings.Proxy.Enabled}"
5353
Text="{Binding Settings.Proxy.Port, TargetNullValue={x:Static sys:String.Empty}}" />
5454
</cc:Card>
5555

56-
<cc:Card Title="{DynamicResource userName}">
56+
<cc:Card Title="{DynamicResource userName}" Type="Middle">
5757
<TextBox
5858
Width="200"
5959
IsEnabled="{Binding Settings.Proxy.Enabled}"
6060
Text="{Binding Settings.Proxy.UserName}" />
6161
</cc:Card>
6262

63-
<cc:Card Title="{DynamicResource password}">
63+
<cc:Card Title="{DynamicResource password}" Type="Last">
6464
<TextBox
6565
Width="200"
6666
IsEnabled="{Binding Settings.Proxy.Enabled}"

Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@
489489
Title="{DynamicResource BackdropType}"
490490
Margin="0 0 0 0"
491491
Icon="&#xeb42;"
492-
Sub="{Binding BackdropSubText}">
492+
Sub="{Binding BackdropSubText}"
493+
Type="First">
493494
<ComboBox
494495
MinWidth="160"
495496
VerticalAlignment="Center"
@@ -505,7 +506,8 @@
505506
<cc:Card
506507
Title="{DynamicResource queryWindowShadowEffect}"
507508
Margin="0 0 0 0"
508-
Icon="&#xeb91;">
509+
Icon="&#xeb91;"
510+
Type="Last">
509511
<ui:ToggleSwitch
510512
IsEnabled="{Binding IsDropShadowEnabled}"
511513
IsOn="{Binding DropShadowEffect}"
@@ -546,7 +548,10 @@
546548

547549
<!-- Time and date -->
548550
<cc:CardGroup Margin="0 14 0 0">
549-
<cc:Card Title="{DynamicResource Clock}" Icon="&#xec92;">
551+
<cc:Card
552+
Title="{DynamicResource Clock}"
553+
Icon="&#xec92;"
554+
Type="First">
550555
<StackPanel Orientation="Horizontal">
551556
<TextBlock
552557
VerticalAlignment="Center"
@@ -567,7 +572,10 @@
567572
</StackPanel>
568573
</cc:Card>
569574

570-
<cc:Card Title="{DynamicResource Date}" Icon="&#xe787;">
575+
<cc:Card
576+
Title="{DynamicResource Date}"
577+
Icon="&#xe787;"
578+
Type="Last">
571579
<StackPanel Orientation="Horizontal">
572580
<TextBlock
573581
VerticalAlignment="Center"

0 commit comments

Comments
 (0)