Skip to content

Commit 48d3193

Browse files
committed
Fix spelling
1 parent 4a0891c commit 48d3193

File tree

13 files changed

+60
-45
lines changed

13 files changed

+60
-45
lines changed

.github/actions/spelling/expect.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,25 @@ TobiasSekan
6262
Img
6363
img
6464
resx
65+
directx
66+
mvvm
67+
dlg
68+
ddd
69+
dddd
70+
clearlogfolder
71+
ACCENT_ENABLE_TRANSPARENTGRADIENT
72+
ACCENT_ENABLE_BLURBEHIND
73+
WCA_ACCENT_POLICY
74+
HGlobal
75+
dopusrt
76+
firefox
77+
msedge
78+
svgc
79+
ime
80+
zindex
81+
txb
82+
btn
83+
otf
84+
searchplugin
85+
Noresult
86+
wpftk

Flow.Launcher.Core/Resource/Theme.cs

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public Theme()
3636
{
3737
_themeDirectories.Add(DirectoryPath);
3838
_themeDirectories.Add(UserDirectoryPath);
39-
MakesureThemeDirectoriesExist();
39+
MakeSureThemeDirectoriesExist();
4040

4141
var dicts = Application.Current.Resources.MergedDictionaries;
4242
_oldResource = dicts.First(d =>
@@ -55,20 +55,17 @@ public Theme()
5555
_oldTheme = Path.GetFileNameWithoutExtension(_oldResource.Source.AbsolutePath);
5656
}
5757

58-
private void MakesureThemeDirectoriesExist()
58+
private void MakeSureThemeDirectoriesExist()
5959
{
60-
foreach (string dir in _themeDirectories)
60+
foreach (var dir in _themeDirectories.Where(dir => !Directory.Exists(dir)))
6161
{
62-
if (!Directory.Exists(dir))
62+
try
6363
{
64-
try
65-
{
66-
Directory.CreateDirectory(dir);
67-
}
68-
catch (Exception e)
69-
{
70-
Log.Exception($"|Theme.MakesureThemeDirectoriesExist|Exception when create directory <{dir}>", e);
71-
}
64+
Directory.CreateDirectory(dir);
65+
}
66+
catch (Exception e)
67+
{
68+
Log.Exception($"|Theme.MakesureThemeDirectoriesExist|Exception when create directory <{dir}>", e);
7269
}
7370
}
7471
}

Flow.Launcher.Infrastructure/UserSettings/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public bool HideNotifyIcon
226226
}
227227
}
228228
public bool LeaveCmdOpen { get; set; }
229-
public bool HideWhenDeactive { get; set; } = true;
229+
public bool HideWhenDeactivated { get; set; } = true;
230230
public SearchWindowPositions SearchWindowPosition { get; set; } = SearchWindowPositions.MouseScreenCenter;
231231
public bool IgnoreHotkeysOnFullscreen { get; set; }
232232

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ private async void OnDeactivated(object sender, EventArgs e)
485485
if (_settings.UseAnimation)
486486
await Task.Delay(100);
487487

488-
if (_settings.HideWhenDeactive)
488+
if (_settings.HideWhenDeactivated)
489489
{
490490
_viewModel.Hide();
491491
}

Flow.Launcher/ResultListBox.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
Style="{DynamicResource BaseListboxStyle}"
2828
VirtualizingStackPanel.IsVirtualizing="True"
2929
VirtualizingStackPanel.VirtualizationMode="Standard"
30-
Visibility="{Binding Visbility}"
30+
Visibility="{Binding Visibility}"
3131
mc:Ignorable="d">
3232
<!-- IsSynchronizedWithCurrentItem: http://stackoverflow.com/a/7833798/2833083 -->
3333

Flow.Launcher/SettingWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@
673673
<ui:ToggleSwitch
674674
Grid.Column="2"
675675
FocusVisualMargin="5"
676-
IsOn="{Binding Settings.HideWhenDeactive}"
676+
IsOn="{Binding Settings.HideWhenDeactivated}"
677677
Style="{DynamicResource SideToggleSwitch}" />
678678
</ItemsControl>
679679
</Border>

Flow.Launcher/Themes/Base.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<CornerRadius x:Key="ItemRadius">0</CornerRadius>
77
<Thickness x:Key="ItemMargin">0</Thickness>
88
<Thickness x:Key="ResultMargin">0</Thickness>
9-
<!-- Further font customisations are dynamically loaded in Theme.cs -->
9+
<!-- Further font customizations are dynamically loaded in Theme.cs -->
1010

1111
<system:Double x:Key="ResultItemHeight">52</system:Double>
1212

@@ -307,7 +307,7 @@
307307
Content="{TemplateBinding Content}"
308308
ContentTemplate="{TemplateBinding ContentTemplate}" />
309309

310-
<!-- Scrollbar in thr rigth of ScrollViewer -->
310+
<!-- Scrollbar in the right of ScrollViewer -->
311311
<ScrollBar
312312
x:Name="PART_VerticalScrollBar"
313313
Grid.Row="0"
@@ -391,7 +391,7 @@
391391
<Setter Property="FontSize" Value="15" />
392392
<Setter Property="Foreground" Value="#8f8f8f" />
393393
</Style>
394-
<Style x:Key="BaseItemHotkeySelecetedStyle" TargetType="{x:Type TextBlock}">
394+
<Style x:Key="BaseItemHotkeySelectedStyle" TargetType="{x:Type TextBlock}">
395395
<Setter Property="FontSize" Value="15" />
396396
<Setter Property="Foreground" Value="#8f8f8f" />
397397
</Style>
@@ -509,7 +509,7 @@
509509
</Style>
510510
<Style
511511
x:Key="ItemHotkeySelectedStyle"
512-
BasedOn="{StaticResource BaseItemHotkeySelecetedStyle}"
512+
BasedOn="{StaticResource BaseItemHotkeySelectedStyle}"
513513
TargetType="{x:Type TextBlock}">
514514
<Setter Property="FontSize" Value="15" />
515515
<Setter Property="Foreground" Value="#8f8f8f" />

Flow.Launcher/Themes/Dracula.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
</Style>
107107
<Style
108108
x:Key="ItemHotkeySelectedStyle"
109-
BasedOn="{StaticResource BaseItemHotkeySelecetedStyle}"
109+
BasedOn="{StaticResource BaseItemHotkeySelectedStyle}"
110110
TargetType="{x:Type TextBlock}">
111111
<Setter Property="FontSize" Value="13" />
112112
<Setter Property="Foreground" Value="#ff79c6" />

Flow.Launcher/Themes/Win11Light.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
</Style>
121121
<Style
122122
x:Key="ItemHotkeySelectedStyle"
123-
BasedOn="{StaticResource BaseItemHotkeySelecetedStyle}"
123+
BasedOn="{StaticResource BaseItemHotkeySelectedStyle}"
124124
TargetType="{x:Type TextBlock}">
125125
<Setter Property="FontSize" Value="13" />
126126
<Setter Property="Foreground" Value="#acacac" />

Flow.Launcher/Themes/Win11System.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
</Style>
114114
<Style
115115
x:Key="ItemHotkeySelectedStyle"
116-
BasedOn="{StaticResource BaseItemHotkeySelecetedStyle}"
116+
BasedOn="{StaticResource BaseItemHotkeySelectedStyle}"
117117
TargetType="{x:Type TextBlock}">
118118
<Setter Property="FontSize" Value="13" />
119119
<Setter Property="Foreground" Value="{DynamicResource HotkeySelectedForeground}" />

0 commit comments

Comments
 (0)