Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
0244d86
Make converters be public
Jack251970 May 29, 2025
647a1c7
Add converters from ModernWPF
Jack251970 May 29, 2025
aefce9f
Add helper from ModernWPF
Jack251970 May 29, 2025
6ef2022
Use iNKORE.UI.WPF.Modern package
Jack251970 May 29, 2025
090a5ff
Use scrollviewerex
Jack251970 May 29, 2025
17ac4df
Remove blank lines
Jack251970 May 31, 2025
ec13be9
Merge branch 'dev' into ui_wpf_modern
Jack251970 Jun 6, 2025
8f4d914
Merge branch 'dev' into ui_wpf_modern
Jack251970 Jun 13, 2025
4e70ad6
Fix build issue
Jack251970 Jun 14, 2025
9fb12ea
Fix build issue
Jack251970 Jun 14, 2025
8b572de
Merge branch 'dev' into ui_wpf_modern
Jack251970 Jun 28, 2025
c04db06
Merge branch 'dev' into ui_wpf_modern
Jack251970 Jul 5, 2025
fdb7307
Fix build issue
Jack251970 Jul 5, 2025
b9737bb
Fix build issue
Jack251970 Jul 5, 2025
69ff18d
Merge branch 'dev' into ui_wpf_modern
Jack251970 Jul 10, 2025
0053ada
Merge branch 'dev' into ui_wpf_modern
Jack251970 Jul 14, 2025
abc1b48
Merge branch 'dev' into ui_wpf_modern
Jack251970 Jul 19, 2025
156bd06
Enable GPU for setting window
Jack251970 Jul 19, 2025
ad1d8a9
Merge branch 'dev' into ui_wpf_modern
Jack251970 Jul 19, 2025
935b58a
Remove unused usings
Jack251970 Jul 19, 2025
97917d5
Merge branch 'dev' into ui_wpf_modern
Jack251970 Jul 19, 2025
203c3bd
Merge branch 'dev' into ui_wpf_modern
Jack251970 Jul 20, 2025
7c8dcab
Improve code quality
Jack251970 Jul 22, 2025
36db183
Use ScrollViewerEx for smooth scroll
Jack251970 Jul 22, 2025
8a0139b
Unify CanContentScroll design
Jack251970 Jul 22, 2025
4014f87
Merge branch 'dev' into ui_wpf_modern
Jack251970 Jul 22, 2025
bfc1ebf
Merge branch 'dev' into ui_wpf_modern
Jack251970 Jul 24, 2025
d72240d
Merge branch 'dev' into ui_wpf_modern
Jack251970 Jul 27, 2025
da7c071
Merge branch 'dev' into ui_wpf_modern
Jack251970 Aug 8, 2025
dd3cae7
Merge branch 'dev' into ui_wpf_modern
Jack251970 Aug 19, 2025
93a46b8
Add theme dictionary keys
Jack251970 Aug 20, 2025
78e8f85
Improve SelectFileManagerWindow
Jack251970 Aug 21, 2025
e67fe57
Improve ReleaseNotesWindow
Jack251970 Aug 21, 2025
e940686
Use SettingsCard & SettingsExpander & HyperLinkButton & InfoBar from …
Jack251970 Aug 21, 2025
119ff61
Remove all unused resources
Jack251970 Aug 21, 2025
1b69320
Add TODOs to fix crashes & compability
Jack251970 Aug 21, 2025
25967c7
Improve WelcomePage3
Jack251970 Aug 21, 2025
82ad686
Add Content Dialog style back
Jack251970 Aug 21, 2025
01f3459
Remove unused controls
Jack251970 Aug 21, 2025
06f805e
Organize resources
Jack251970 Aug 21, 2025
e175db0
Use one scroll viewer
Jack251970 Sep 5, 2025
f031454
Merge branch 'dev' into ui_wpf_modern
Jack251970 Sep 5, 2025
cfd2682
Update lock file
Jack251970 Sep 5, 2025
0a3da3d
Fix InfoBar IsOpen issue & Improve code quality
Jack251970 Sep 5, 2025
d3d6819
Merge branch 'dev' into ui_wpf_modern
Jack251970 Sep 6, 2025
6739a5e
Add scroll property in listbox
onesounds Sep 9, 2025
467e805
Added Sample Numberbox Control Template
onesounds Sep 9, 2025
3042fce
Format style
Jack251970 Sep 9, 2025
ee88fbf
Fix NumberBox MinWidth
Jack251970 Sep 9, 2025
4e7feab
Override styles in UI.Modern.WPF
Jack251970 Sep 9, 2025
5a69a48
Remove NumberBox control template & Add ListView control template
Jack251970 Sep 9, 2025
b637e21
Fix list view item vertial center issue
Jack251970 Sep 9, 2025
ff3688b
Add auto resize for list view in web search plugin
Jack251970 Sep 9, 2025
62e6111
Fix list view item vertical center issue
Jack251970 Sep 9, 2025
e0cdf4f
Override styles in UI.Modern.WPF
Jack251970 Sep 9, 2025
5cb5a9a
Add code comments
Jack251970 Sep 9, 2025
fa68521
Revert "Add scroll property in listbox"
Jack251970 Sep 9, 2025
4ce4f75
Add CustomScrollViewerEx
Jack251970 Sep 9, 2025
b7f441e
Improve code quality
Jack251970 Sep 9, 2025
203d867
Fix issue
Jack251970 Sep 9, 2025
54fc92f
Use CustomScrollViewerEx
Jack251970 Sep 9, 2025
e0e5dc6
Adjust Item Margin in general page
onesounds Sep 10, 2025
cd47b86
- Adjust Item Margin
onesounds Sep 10, 2025
5c04e26
Do not focus for context menu
Jack251970 Sep 10, 2025
315d762
Try fix
Jack251970 Sep 10, 2025
b8ae220
Improve code quality
Jack251970 Sep 10, 2025
4267225
Use ui:GridView
Jack251970 Sep 10, 2025
97fb6a4
Move all resources to Style
Jack251970 Sep 10, 2025
c3493da
Add scroll unit
Jack251970 Sep 10, 2025
c4147c0
Use ListBox to fix virtualization issue
Jack251970 Sep 10, 2025
194c70a
Fix text color
Jack251970 Sep 10, 2025
9872b08
Fix tab navigation
Jack251970 Sep 10, 2025
5ed53a9
Fix textblock color
Jack251970 Sep 10, 2025
072d55c
Improve ListBox scroll viewer
Jack251970 Sep 10, 2025
552ebcb
Improve code quality
Jack251970 Sep 10, 2025
8cf829d
Fix scroll bar padding
Jack251970 Sep 10, 2025
6ce0580
Remove auto hide scroll bars setting
Jack251970 Sep 11, 2025
aa3cfb7
Use DefaultListBoxStyle
Jack251970 Sep 11, 2025
9b21e7d
Improve store item focus visual style
Jack251970 Sep 11, 2025
867247a
Remove SwitchFocusVisualStyleKey
Jack251970 Sep 11, 2025
4ff8ef9
Improve code quality
Jack251970 Sep 11, 2025
55df108
Remove NavTabControl style
Jack251970 Sep 11, 2025
ee7e517
Remove NavTabItem style
Jack251970 Sep 11, 2025
71e0a55
Remove logo style
Jack251970 Sep 11, 2025
27b3b45
Use DefaultListBoxItemStyle for plugin item & plugin store item & Rem…
Jack251970 Sep 11, 2025
1630e10
Improve code quality
Jack251970 Sep 11, 2025
743b4d8
Use dynamic resource
Jack251970 Sep 11, 2025
5cd1e60
Use DefaultListBoxItemStyle for theme style
Jack251970 Sep 11, 2025
1caa691
Add & Use ThemeListStyle
Jack251970 Sep 11, 2025
e5ed1ed
Improve code quality
Jack251970 Sep 11, 2025
f9e40ce
Remove HyperLinkBtnStyle
Jack251970 Sep 11, 2025
e32538d
Use ui:HyperlinkButton instead of Button & Hyperlink in about page
Jack251970 Sep 11, 2025
1a55abe
Improve welcome page 3
Jack251970 Sep 11, 2025
5f01702
Improve release notes window
Jack251970 Sep 11, 2025
1fdb3fc
Revert "Use ui:HyperlinkButton instead of Button & Hyperlink in about…
Jack251970 Sep 11, 2025
c477bc5
Use AccentButton instead of Hyperlink
Jack251970 Sep 11, 2025
65ff188
Fix release window width issue
Jack251970 Sep 11, 2025
5b131e5
Remove unchanged resources
Jack251970 Sep 11, 2025
f9e4857
Remove unchanged resources of navigation view
Jack251970 Sep 11, 2025
37e407a
Fix ExpanderHeaderFocusVisual
Jack251970 Sep 11, 2025
9f08c4f
Fix AllEverythingSortOptions binding issue
Jack251970 Sep 11, 2025
979efd3
Improve WebSearch SettingsControl
Jack251970 Sep 13, 2025
94d7619
Merge branch 'dev' into ui_wpf_modern
Jack251970 Sep 13, 2025
27d0c69
Add UI.WPF.Modern badge
Jack251970 Sep 13, 2025
01be6a1
Merge branch 'ui_wpf_modern' of https://github.com/Flow-Launcher/Flow…
Jack251970 Sep 13, 2025
4869f43
Merge branch 'dev' into ui_wpf_modern
Jack251970 Sep 16, 2025
7613bad
Fix context menu focus visuals
Jack251970 Sep 16, 2025
1782542
Merge branch 'ui_wpf_modern' of https://github.com/Flow-Launcher/Flow…
Jack251970 Sep 16, 2025
9751ffc
Merge branch 'dev' into ui_wpf_modern
Jack251970 Sep 16, 2025
67be26a
Merge branch 'dev' into ui_wpf_modern
Jack251970 Sep 18, 2025
07bafea
Merge branch 'dev' into ui_wpf_modern
Jack251970 Sep 21, 2025
3099dc8
Merge branch 'dev' into ui_wpf_modern
Jack251970 Sep 21, 2025
66145bf
Remove unused resources
Jack251970 Sep 24, 2025
5dff125
Add more code comments
Jack251970 Sep 24, 2025
1cef358
Add future todos
Jack251970 Sep 24, 2025
67f7834
Format xaml files
Jack251970 Sep 24, 2025
b1e6cfa
Improve code quality
Jack251970 Sep 24, 2025
50ec9de
Improve CustomToggleButtonStyle
Jack251970 Sep 24, 2025
7c24d97
Improve DefaultToggleSwitch
Jack251970 Sep 24, 2025
eb5b20a
Fix DefaultToggleSwitch resources
Jack251970 Sep 24, 2025
ebf1e86
Merge branch 'dev' into ui_wpf_modern
Jack251970 Sep 24, 2025
4b22862
Add WPF UI Library section
Jack251970 Sep 29, 2025
26c2aa9
Update image tag width in README.md
Jack251970 Sep 29, 2025
5b755b7
Merge branch 'dev' into ui_wpf_modern
Jack251970 Oct 3, 2025
fabc7b2
Remove unused LocalizedDescriptionAttribute
Jack251970 Oct 3, 2025
dc3d2be
Log and catch more exception when changing themes
Jack251970 Oct 3, 2025
4e37a10
Revert selection if failed to set theme
Jack251970 Oct 3, 2025
97efa17
update development section of README.md
jjw24 Oct 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions Flow.Launcher.Core/Resource/LocalizedDescriptionAttribute.cs

This file was deleted.

14 changes: 12 additions & 2 deletions Flow.Launcher.Core/Resource/Theme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,19 @@ public bool ChangeTheme(string theme = null)
}
return false;
}
catch (XamlParseException)
catch (XamlParseException e)
{
_api.LogError(ClassName, $"Theme <{theme}> fail to parse");
_api.LogException(ClassName, $"Theme <{theme}> fail to parse xaml", e);
if (theme != Constant.DefaultTheme)
{
_api.ShowMsgBox(Localize.theme_load_failure_parse_error(theme));
ChangeTheme(Constant.DefaultTheme);
}
return false;
}
catch (Exception e)
{
_api.LogException(ClassName, $"Theme <{theme}> fail to load", e);
if (theme != Constant.DefaultTheme)
{
_api.ShowMsgBox(Localize.theme_load_failure_parse_error(theme));
Expand Down
18 changes: 14 additions & 4 deletions Flow.Launcher/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,26 @@
x:Class="Flow.Launcher.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="http://schemas.modernwpf.com/2019"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
ShutdownMode="OnMainWindowClose"
Startup="OnStartup">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ui:ThemeResources>
<ui:ThemeResources.ThemeDictionaries>
<ResourceDictionary x:Key="Light">
<ResourceDictionary x:Key="Light" ui:ThemeDictionary.Key="Light">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Resources/Light.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
<ResourceDictionary x:Key="Dark">
<ResourceDictionary x:Key="Dark" ui:ThemeDictionary.Key="Dark">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Resources/Dark.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
<ResourceDictionary x:Key="HighContrast">
<ResourceDictionary x:Key="HighContrast" ui:ThemeDictionary.Key="HighContrast">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Resources/Dark.xaml" />
</ResourceDictionary.MergedDictionaries>
Expand All @@ -33,6 +34,15 @@
<ResourceDictionary Source="pack://application:,,,/Themes/Win11Light.xaml" />
<ResourceDictionary Source="pack://application:,,,/Languages/en.xaml" />
</ResourceDictionary.MergedDictionaries>

<!-- Override styles in UI.Modern.WPF -->
<Thickness x:Key="ListViewItemCompactSelectedBorderThemeThickness">2</Thickness>
<sys:Double x:Key="CheckBoxMinWidth">0</sys:Double>
<sys:Double x:Key="GridViewItemMinWidth">0</sys:Double>
<sys:Double x:Key="GridViewItemMinHeight">40</sys:Double>
<sys:Double x:Key="ListViewItemMinWidth">0</sys:Double>
<sys:Double x:Key="ListViewItemMinHeight">36</sys:Double>
<SolidColorBrush x:Key="NavigationViewSelectionIndicatorForeground" Color="#FF0063B1" />
</ResourceDictionary>
</Application.Resources>
</Application>
4 changes: 4 additions & 0 deletions Flow.Launcher/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using Flow.Launcher.Plugin;
using Flow.Launcher.SettingPages.ViewModels;
using Flow.Launcher.ViewModel;
using iNKORE.UI.WPF.Modern.Common;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.VisualStudio.Threading;
Expand Down Expand Up @@ -56,6 +57,9 @@

public App()
{
// Do not use bitmap cache since it can cause WPF second window freezing issue
ShadowAssist.UseBitmapCache = false;

// Initialize settings
_settings.WMPInstalled = WindowsMediaPlayerHelper.IsWindowsMediaPlayerInstalled();

Expand Down Expand Up @@ -225,7 +229,7 @@
// Update plugin titles after plugins are initialized with their api instances
Internationalization.UpdatePluginMetadataTranslations();

await imageLoadertask;

Check warning on line 232 in Flow.Launcher/App.xaml.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`Loadertask` is not a recognized word. (unrecognized-spelling)

_mainWindow = new MainWindow();

Expand Down
4 changes: 2 additions & 2 deletions Flow.Launcher/Converters/BoolToIMEConversionModeConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Flow.Launcher.Converters;

internal class BoolToIMEConversionModeConverter : IValueConverter
public class BoolToIMEConversionModeConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
Expand All @@ -22,7 +22,7 @@ public object ConvertBack(object value, Type targetType, object parameter, Cultu
}
}

internal class BoolToIMEStateConverter : IValueConverter
public class BoolToIMEStateConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
Expand Down
91 changes: 91 additions & 0 deletions Flow.Launcher/Converters/CornerRadiusFilterConverter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace Flow.Launcher.Converters;

public class CornerRadiusFilterConverter : DependencyObject, IValueConverter
{
public CornerRadiusFilterKind Filter { get; set; }

public double Scale { get; set; } = 1.0;

public static CornerRadius Convert(CornerRadius radius, CornerRadiusFilterKind filterKind)
{
CornerRadius result = radius;

switch (filterKind)
{
case CornerRadiusFilterKind.Top:
result.BottomLeft = 0;
result.BottomRight = 0;
break;
case CornerRadiusFilterKind.Right:
result.TopLeft = 0;
result.BottomLeft = 0;
break;
case CornerRadiusFilterKind.Bottom:
result.TopLeft = 0;
result.TopRight = 0;
break;
case CornerRadiusFilterKind.Left:
result.TopRight = 0;
result.BottomRight = 0;
break;
}

return result;
}

public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var cornerRadius = (CornerRadius)value;

var scale = Scale;
if (!double.IsNaN(scale))
{
cornerRadius.TopLeft *= scale;
cornerRadius.TopRight *= scale;
cornerRadius.BottomRight *= scale;
cornerRadius.BottomLeft *= scale;
}

var filterType = Filter;
if (filterType == CornerRadiusFilterKind.TopLeftValue ||
filterType == CornerRadiusFilterKind.BottomRightValue)
{
return GetDoubleValue(cornerRadius, filterType);
}

return Convert(cornerRadius, filterType);
}

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}

private static double GetDoubleValue(CornerRadius radius, CornerRadiusFilterKind filterKind)
{
switch (filterKind)
{
case CornerRadiusFilterKind.TopLeftValue:
return radius.TopLeft;
case CornerRadiusFilterKind.BottomRightValue:
return radius.BottomRight;
}
return 0;
}
}

public enum CornerRadiusFilterKind
{
None,
Top,
Right,
Bottom,
Left,
TopLeftValue,
BottomRightValue
}
32 changes: 32 additions & 0 deletions Flow.Launcher/Converters/PlacementRectangleConverter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace Flow.Launcher.Converters;

public class PlacementRectangleConverter : IMultiValueConverter
{
public Thickness Margin { get; set; }

public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
{
if (values.Length == 2 &&
values[0] is double width &&
values[1] is double height)
{
var margin = Margin;
var topLeft = new Point(margin.Left, margin.Top);
var bottomRight = new Point(width - margin.Right, height - margin.Bottom);
var rect = new Rect(topLeft, bottomRight);
return rect;
}

return Rect.Empty;
}

public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
19 changes: 19 additions & 0 deletions Flow.Launcher/Converters/SharedSizeGroupConverter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace Flow.Launcher.Converters;

public class SharedSizeGroupConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return (Visibility)value != Visibility.Collapsed ? (string)parameter : null;
}

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
2 changes: 1 addition & 1 deletion Flow.Launcher/Converters/StringToKeyBindingConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Flow.Launcher.Converters;

class StringToKeyBindingConverter : IValueConverter
public class StringToKeyBindingConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
Expand Down
4 changes: 1 addition & 3 deletions Flow.Launcher/Flow.Launcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="iNKORE.UI.WPF.Modern" Version="0.10.1" />
<PackageReference Include="MdXaml" Version="1.27.0" />
<PackageReference Include="MdXaml.AnimatedGif" Version="1.27.0" />
<PackageReference Include="MdXaml.Html" Version="1.27.0" />
Expand All @@ -146,9 +147,6 @@
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.9" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.9" />
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" />
<!-- ModernWpfUI v0.9.5 introduced WinRT changes that causes Notification platform unavailable error on some machines -->
<!-- https://github.com/Flow-Launcher/Flow.Launcher/issues/1772#issuecomment-1502440801 -->
<PackageReference Include="ModernWpfUI" Version="0.9.4" />
<PackageReference Include="PropertyChanged.Fody" Version="4.1.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
33 changes: 33 additions & 0 deletions Flow.Launcher/Helper/BorderHelper.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System.Windows;
using System.Windows.Controls;

namespace Flow.Launcher.Helper;

public static class BorderHelper
{
#region Child

public static readonly DependencyProperty ChildProperty =
DependencyProperty.RegisterAttached(
"Child",
typeof(UIElement),
typeof(BorderHelper),
new PropertyMetadata(default(UIElement), OnChildChanged));

public static UIElement GetChild(Border border)
{
return (UIElement)border.GetValue(ChildProperty);
}

public static void SetChild(Border border, UIElement value)
{
border.SetValue(ChildProperty, value);
}

private static void OnChildChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
((Border)d).Child = (UIElement)e.NewValue;
}

#endregion
}
2 changes: 1 addition & 1 deletion Flow.Launcher/HotkeyControlDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
x:Class="Flow.Launcher.HotkeyControlDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="http://schemas.modernwpf.com/2019"
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
Background="{DynamicResource PopuBGColor}"
BorderBrush="{DynamicResource PopupButtonAreaBorderColor}"
BorderThickness="0 1 0 0"
Expand Down
2 changes: 1 addition & 1 deletion Flow.Launcher/HotkeyControlDialog.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using Flow.Launcher.Infrastructure.Hotkey;
using Flow.Launcher.Infrastructure.UserSettings;
using Flow.Launcher.Plugin;
using ModernWpf.Controls;
using iNKORE.UI.WPF.Modern.Controls;

namespace Flow.Launcher;

Expand All @@ -31,7 +31,7 @@
Delete
}

public EResultType ResultType { get; private set; } = EResultType.Cancel;

Check warning on line 34 in Flow.Launcher/HotkeyControlDialog.xaml.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`EResult` is not a recognized word. (unrecognized-spelling)

Check warning on line 34 in Flow.Launcher/HotkeyControlDialog.xaml.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`EResult` is not a recognized word. (unrecognized-spelling)
public string ResultValue { get; private set; } = string.Empty;
public static string EmptyHotkey => Localize.none();

Expand Down Expand Up @@ -75,7 +75,7 @@
ChefKeysManager.StartMenuEnableBlocking = false;
ChefKeysManager.Stop();

ResultType = EResultType.Cancel;

Check warning on line 78 in Flow.Launcher/HotkeyControlDialog.xaml.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`EResult` is not a recognized word. (unrecognized-spelling)
Hide();
}

Expand All @@ -86,7 +86,7 @@

if (KeysToDisplay.Count == 1 && KeysToDisplay[0] == EmptyHotkey)
{
ResultType = EResultType.Delete;

Check warning on line 89 in Flow.Launcher/HotkeyControlDialog.xaml.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`EResult` is not a recognized word. (unrecognized-spelling)
Hide();
return;
}
Expand Down
2 changes: 1 addition & 1 deletion Flow.Launcher/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:flowlauncher="clr-namespace:Flow.Launcher"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="http://schemas.modernwpf.com/2019"
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
xmlns:vm="clr-namespace:Flow.Launcher.ViewModel"
Name="FlowMainWindow"
Title="Flow Launcher"
Expand Down
7 changes: 4 additions & 3 deletions Flow.Launcher/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
using Flow.Launcher.Plugin.SharedCommands;
using Flow.Launcher.Plugin.SharedModels;
using Flow.Launcher.ViewModel;
using ModernWpf.Controls;
using iNKORE.UI.WPF.Modern;
using iNKORE.UI.WPF.Modern.Controls;
using DataObject = System.Windows.DataObject;
using Key = System.Windows.Input.Key;
using MouseButtons = System.Windows.Forms.MouseButtons;
Expand Down Expand Up @@ -191,11 +192,11 @@
// Initialize color scheme
if (_settings.ColorScheme == Constant.Light)
{
ModernWpf.ThemeManager.Current.ApplicationTheme = ModernWpf.ApplicationTheme.Light;
ThemeManager.Current.ApplicationTheme = ApplicationTheme.Light;
}
else if (_settings.ColorScheme == Constant.Dark)
{
ModernWpf.ThemeManager.Current.ApplicationTheme = ModernWpf.ApplicationTheme.Dark;
ThemeManager.Current.ApplicationTheme = ApplicationTheme.Dark;
}

// Initialize position
Expand Down Expand Up @@ -858,7 +859,7 @@

public void UpdatePosition()
{
// Initialize call twice to work around multi-display alignment issue- https://github.com/Flow-Launcher/Flow.Launcher/issues/2910

Check failure on line 862 in Flow.Launcher/MainWindow.xaml.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`work around` matches a line_forbidden.patterns entry: `\bwork[- ]arounds?\b`. (forbidden-pattern)
if (_viewModel.IsDialogJumpWindowUnderDialog())
{
InitializeDialogJumpPosition();
Expand All @@ -882,7 +883,7 @@

private void InitializePosition()
{
// Initialize call twice to work around multi-display alignment issue- https://github.com/Flow-Launcher/Flow.Launcher/issues/2910

Check failure on line 886 in Flow.Launcher/MainWindow.xaml.cs

View workflow job for this annotation

GitHub Actions / Check Spelling

`work around` matches a line_forbidden.patterns entry: `\bwork[- ]arounds?\b`. (forbidden-pattern)
InitializePositionInner();
InitializePositionInner();
return;
Expand Down
Loading
Loading