2222using Flow . Launcher . Infrastructure . UserSettings ;
2323using Flow . Launcher . Plugin . SharedCommands ;
2424using Flow . Launcher . ViewModel ;
25+ using iNKORE . UI . WPF . Modern ;
26+ using iNKORE . UI . WPF . Modern . Controls ;
2527using Microsoft . Win32 ;
26- using ModernWpf . Controls ;
2728using DataObject = System . Windows . DataObject ;
2829using Key = System . Windows . Input . Key ;
2930using 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
0 commit comments