diff --git a/src/DesktopMagic/App.xaml.cs b/src/DesktopMagic/App.xaml.cs index 55be20b..20acbf9 100644 --- a/src/DesktopMagic/App.xaml.cs +++ b/src/DesktopMagic/App.xaml.cs @@ -5,6 +5,8 @@ using System.IO; using System.Threading; using System.Windows; +using Wpf.Ui; + namespace DesktopMagic; /// @@ -26,6 +28,8 @@ public partial class App : Application public static string PluginsPath => Path.Combine(ApplicationDataPath, "Plugins"); + public static IContentDialogService DialogService { get; } = new ContentDialogService(); + public static Logger Logger { get; } = new Logger() { Config = new() diff --git a/src/DesktopMagic/DataContexts/MainWindowDataContext.cs b/src/DesktopMagic/DataContexts/MainWindowDataContext.cs index 88aa449..8c3c0fd 100644 --- a/src/DesktopMagic/DataContexts/MainWindowDataContext.cs +++ b/src/DesktopMagic/DataContexts/MainWindowDataContext.cs @@ -11,6 +11,7 @@ internal class MainWindowDataContext : INotifyPropertyChanged public event PropertyChangedEventHandler? PropertyChanged; private static DesktopMagicSettings settings = new(); + private bool isLoading = true; public string Title => diff --git a/src/DesktopMagic/Dialogs/ColorDialog.xaml b/src/DesktopMagic/Dialogs/ColorDialog.xaml index 18c4330..96c3fd1 100644 --- a/src/DesktopMagic/Dialogs/ColorDialog.xaml +++ b/src/DesktopMagic/Dialogs/ColorDialog.xaml @@ -1,50 +1,76 @@ - + ExtendsContentIntoTitleBar="True"> - + + + + + + + + + + + + +