|
14 | 14 | using System.Windows.Media;
|
15 | 15 | using CommunityToolkit.Mvvm.DependencyInjection;
|
16 | 16 | using Flow.Launcher.Core;
|
| 17 | +using Flow.Launcher.Core.ExternalPlugins; |
17 | 18 | using Flow.Launcher.Core.Plugin;
|
18 | 19 | using Flow.Launcher.Core.Resource;
|
19 |
| -using Flow.Launcher.Core.ExternalPlugins; |
20 | 20 | using Flow.Launcher.Core.Storage;
|
21 | 21 | using Flow.Launcher.Helper;
|
22 | 22 | using Flow.Launcher.Infrastructure;
|
23 |
| -using Flow.Launcher.Infrastructure.Http; |
24 | 23 | using Flow.Launcher.Infrastructure.Hotkey;
|
| 24 | +using Flow.Launcher.Infrastructure.Http; |
25 | 25 | using Flow.Launcher.Infrastructure.Image;
|
26 | 26 | using Flow.Launcher.Infrastructure.Logger;
|
27 | 27 | using Flow.Launcher.Infrastructure.Storage;
|
28 | 28 | using Flow.Launcher.Infrastructure.UserSettings;
|
29 | 29 | using Flow.Launcher.Plugin;
|
30 |
| -using Flow.Launcher.Plugin.SharedModels; |
31 | 30 | using Flow.Launcher.Plugin.SharedCommands;
|
| 31 | +using Flow.Launcher.Plugin.SharedModels; |
32 | 32 | using Flow.Launcher.ViewModel;
|
33 | 33 | using JetBrains.Annotations;
|
| 34 | +using ModernWpf; |
34 | 35 | using Squirrel;
|
35 | 36 | using Stopwatch = Flow.Launcher.Infrastructure.Stopwatch;
|
36 | 37 |
|
@@ -587,6 +588,17 @@ public long StopwatchLogInfo(string className, string message, Action action, [C
|
587 | 588 | public Task<long> StopwatchLogInfoAsync(string className, string message, Func<Task> action, [CallerMemberName] string methodName = "") =>
|
588 | 589 | Stopwatch.InfoAsync(className, message, action, methodName);
|
589 | 590 |
|
| 591 | + public bool IsApplicationDarkTheme() |
| 592 | + { |
| 593 | + return ThemeManager.Current.ActualApplicationTheme == ApplicationTheme.Dark; |
| 594 | + } |
| 595 | + |
| 596 | + public event ActualApplicationThemeChangedEventHandler ActualApplicationThemeChanged |
| 597 | + { |
| 598 | + add => _mainVM.ActualApplicationThemeChanged += value; |
| 599 | + remove => _mainVM.ActualApplicationThemeChanged -= value; |
| 600 | + } |
| 601 | + |
590 | 602 | #endregion
|
591 | 603 |
|
592 | 604 | #region Private Methods
|
|
0 commit comments