Skip to content

Commit 6ef2022

Browse files
committed
Use iNKORE.UI.WPF.Modern package
1 parent aefce9f commit 6ef2022

39 files changed

+77
-77
lines changed

Flow.Launcher/App.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
x:Class="Flow.Launcher.App"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5-
xmlns:ui="http://schemas.modernwpf.com/2019"
5+
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
66
ShutdownMode="OnMainWindowClose"
77
Startup="OnStartup">
88
<Application.Resources>

Flow.Launcher/Flow.Launcher.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,12 @@
8989
<PrivateAssets>all</PrivateAssets>
9090
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
9191
</PackageReference>
92+
<PackageReference Include="iNKORE.UI.WPF.Modern" Version="0.10.0" />
9293
<PackageReference Include="InputSimulator" Version="1.0.4" />
9394
<!-- Do not upgrade Microsoft.Extensions.DependencyInjection and Microsoft.Extensions.Hosting since we are .Net7.0 -->
9495
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
9596
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
9697
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" />
97-
<!-- ModernWpfUI v0.9.5 introduced WinRT changes that causes Notification platform unavailable error on some machines -->
98-
<!-- https://github.com/Flow-Launcher/Flow.Launcher/issues/1772#issuecomment-1502440801 -->
99-
<PackageReference Include="ModernWpfUI" Version="0.9.4" />
10098
<PackageReference Include="NHotkey.Wpf" Version="3.0.0" />
10199
<PackageReference Include="PropertyChanged.Fody" Version="3.4.0">
102100
<PrivateAssets>all</PrivateAssets>

Flow.Launcher/HotkeyControlDialog.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
x:Class="Flow.Launcher.HotkeyControlDialog"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5-
xmlns:ui="http://schemas.modernwpf.com/2019"
5+
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
66
Background="{DynamicResource PopuBGColor}"
77
BorderBrush="{DynamicResource PopupButtonAreaBorderColor}"
88
BorderThickness="0 1 0 0"

Flow.Launcher/HotkeyControlDialog.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using Flow.Launcher.Infrastructure.Hotkey;
1010
using Flow.Launcher.Infrastructure.UserSettings;
1111
using Flow.Launcher.Plugin;
12-
using ModernWpf.Controls;
12+
using iNKORE.UI.WPF.Modern.Controls;
1313

1414
namespace Flow.Launcher;
1515

Flow.Launcher/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
77
xmlns:flowlauncher="clr-namespace:Flow.Launcher"
88
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9-
xmlns:ui="http://schemas.modernwpf.com/2019"
9+
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
1010
xmlns:vm="clr-namespace:Flow.Launcher.ViewModel"
1111
Name="FlowMainWindow"
1212
Title="Flow Launcher"

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
using Flow.Launcher.Infrastructure.UserSettings;
2323
using Flow.Launcher.Plugin.SharedCommands;
2424
using Flow.Launcher.ViewModel;
25+
using iNKORE.UI.WPF.Modern;
26+
using iNKORE.UI.WPF.Modern.Controls;
2527
using Microsoft.Win32;
26-
using ModernWpf.Controls;
2728
using DataObject = System.Windows.DataObject;
2829
using Key = System.Windows.Input.Key;
2930
using MouseButtons = System.Windows.Forms.MouseButtons;
@@ -89,7 +90,7 @@ public MainWindow()
8990

9091
InitSoundEffects();
9192
DataObject.AddPastingHandler(QueryTextBox, QueryTextBox_OnPaste);
92-
ModernWpf.ThemeManager.Current.ActualApplicationThemeChanged += ThemeManager_ActualApplicationThemeChanged;
93+
ThemeManager.Current.ActualApplicationThemeChanged += ThemeManager_ActualApplicationThemeChanged;
9394
SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged;
9495
}
9596

@@ -99,9 +100,9 @@ public MainWindow()
99100

100101
#pragma warning disable VSTHRD100 // Avoid async void methods
101102

102-
private void ThemeManager_ActualApplicationThemeChanged(ModernWpf.ThemeManager sender, object args)
103+
private void ThemeManager_ActualApplicationThemeChanged(ThemeManager sender, object args)
103104
{
104-
_theme.RefreshFrameAsync();
105+
_ = _theme.RefreshFrameAsync();
105106
}
106107

107108
private void OnSourceInitialized(object sender, EventArgs e)
@@ -161,11 +162,11 @@ private void OnLoaded(object sender, RoutedEventArgs _)
161162
// Initialize color scheme
162163
if (_settings.ColorScheme == Constant.Light)
163164
{
164-
ModernWpf.ThemeManager.Current.ApplicationTheme = ModernWpf.ApplicationTheme.Light;
165+
ThemeManager.Current.ApplicationTheme = ApplicationTheme.Light;
165166
}
166167
else if (_settings.ColorScheme == Constant.Dark)
167168
{
168-
ModernWpf.ThemeManager.Current.ApplicationTheme = ModernWpf.ApplicationTheme.Dark;
169+
ThemeManager.Current.ApplicationTheme = ApplicationTheme.Dark;
169170
}
170171

171172
// Initialize position
@@ -1257,7 +1258,7 @@ protected virtual void Dispose(bool disposing)
12571258
_notifyIcon?.Dispose();
12581259
animationSoundWMP?.Close();
12591260
animationSoundWPF?.Dispose();
1260-
ModernWpf.ThemeManager.Current.ActualApplicationThemeChanged -= ThemeManager_ActualApplicationThemeChanged;
1261+
ThemeManager.Current.ActualApplicationThemeChanged -= ThemeManager_ActualApplicationThemeChanged;
12611262
SystemEvents.PowerModeChanged -= SystemEvents_PowerModeChanged;
12621263
}
12631264

Flow.Launcher/Resources/Controls/Card.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
xmlns:local="clr-namespace:Flow.Launcher.Resources.Controls"
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
88
xmlns:sys="clr-namespace:System;assembly=mscorlib"
9-
xmlns:ui="http://schemas.modernwpf.com/2019"
9+
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
1010
d:DesignHeight="450"
1111
d:DesignWidth="800"
1212
mc:Ignorable="d">

Flow.Launcher/Resources/Controls/ExCard.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
xmlns:local="clr-namespace:Flow.Launcher.Resources.Controls"
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
88
xmlns:sys="clr-namespace:System;assembly=mscorlib"
9-
xmlns:ui="http://schemas.modernwpf.com/2019"
9+
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
1010
mc:Ignorable="d">
1111
<UserControl.Template>
1212
<ControlTemplate TargetType="UserControl">

Flow.Launcher/Resources/Controls/InfoBar.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xmlns:cc="clr-namespace:Flow.Launcher.Resources.Controls"
66
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8-
xmlns:ui="http://schemas.modernwpf.com/2019"
8+
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
99
d:DesignHeight="45"
1010
d:DesignWidth="400"
1111
mc:Ignorable="d">

Flow.Launcher/Resources/Controls/InstalledPluginDisplay.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
xmlns:converters="clr-namespace:Flow.Launcher.Converters"
77
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
88
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9-
xmlns:ui="http://schemas.modernwpf.com/2019"
9+
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
1010
xmlns:viewModel="clr-namespace:Flow.Launcher.ViewModel"
1111
d:DataContext="{d:DesignInstance viewModel:PluginViewModel}"
1212
d:DesignHeight="300"

0 commit comments

Comments
 (0)