diff --git a/MapWizard.Desktop/App.axaml b/MapWizard.Desktop/App.axaml index c144272..d6987cc 100644 --- a/MapWizard.Desktop/App.axaml +++ b/MapWizard.Desktop/App.axaml @@ -13,12 +13,12 @@ - - - - + + + + - \ No newline at end of file + diff --git a/MapWizard.Desktop/App.axaml.cs b/MapWizard.Desktop/App.axaml.cs index eab5be2..ba00bb2 100644 --- a/MapWizard.Desktop/App.axaml.cs +++ b/MapWizard.Desktop/App.axaml.cs @@ -1,6 +1,5 @@ using Avalonia; using Avalonia.Controls.ApplicationLifetimes; -using Avalonia.Data.Core.Plugins; using Avalonia.Markup.Xaml; using MapWizard.Desktop.DependencyInjection; using MapWizard.Desktop.Services; @@ -18,7 +17,6 @@ public override void Initialize() public override void OnFrameworkInitializationCompleted() { - BindingPlugins.DataValidators.RemoveAt(0); var collection = new ServiceCollection(); collection.AddCommonServices(); var services = collection.BuildServiceProvider(); diff --git a/MapWizard.Desktop/MapWizard.Desktop.csproj b/MapWizard.Desktop/MapWizard.Desktop.csproj index 5727297..687daa9 100644 --- a/MapWizard.Desktop/MapWizard.Desktop.csproj +++ b/MapWizard.Desktop/MapWizard.Desktop.csproj @@ -11,28 +11,27 @@ - - - - - - - + + + + + + - - + + - - - - + + + + - - + + - - + + diff --git a/MapWizard.Desktop/Program.cs b/MapWizard.Desktop/Program.cs index 8c42f52..b4f7baf 100644 --- a/MapWizard.Desktop/Program.cs +++ b/MapWizard.Desktop/Program.cs @@ -2,14 +2,13 @@ using System; using System.Linq; using Velopack; - -namespace MapWizard.Desktop; - -internal static class Program -{ - // Initialization code. Don't use any Avalonia, third-party APIs or any - // SynchronizationContext-reliant code before AppMain is called: things aren't initialized - // yet and stuff might break. +namespace MapWizard.Desktop; + +internal static class Program +{ + // Initialization code. Don't use any Avalonia, third-party APIs or any + // SynchronizationContext-reliant code before AppMain is called: things aren't initialized + // yet and stuff might break. [STAThread] public static void Main(string[] args) { @@ -31,6 +30,7 @@ public static void Main(string[] args) private static AppBuilder BuildAvaloniaApp(bool forceSoftwareRendering) => AppBuilder.Configure() .UsePlatformDetect() + .UseWayland() .WithInterFont() .With(new X11PlatformOptions() { @@ -41,9 +41,8 @@ private static AppBuilder BuildAvaloniaApp(bool forceSoftwareRendering) X11RenderingMode.Glx, X11RenderingMode.Vulkan, X11RenderingMode.Software - ], - OverlayPopups = true + ] }) .LogToTrace(); - -} + +} diff --git a/MapWizard.Desktop/ViewModels/ComboColourStudioViewModel.cs b/MapWizard.Desktop/ViewModels/ComboColourStudioViewModel.cs index 4d1b94e..74bc6ef 100644 --- a/MapWizard.Desktop/ViewModels/ComboColourStudioViewModel.cs +++ b/MapWizard.Desktop/ViewModels/ComboColourStudioViewModel.cs @@ -177,7 +177,7 @@ private async Task SelectOriginMap(string path) } catch (Exception ex) { - MapWizard.Tools.HelperExtensions.MapWizardLogger.LogException(ex); + Tools.HelperExtensions.MapWizardLogger.LogException(ex); ShowToast(NotificationType.Error, "Combo Colour Studio", ex.Message); } } diff --git a/MapWizard.Desktop/ViewModels/MainWindowViewModel.cs b/MapWizard.Desktop/ViewModels/MainWindowViewModel.cs index 6d9488e..0f2f9cc 100644 --- a/MapWizard.Desktop/ViewModels/MainWindowViewModel.cs +++ b/MapWizard.Desktop/ViewModels/MainWindowViewModel.cs @@ -13,7 +13,7 @@ namespace MapWizard.Desktop.ViewModels { public partial class MainWindowViewModel : ObservableObject { - private ISukiToastManager ToastManager { get; } + public ISukiToastManager ToastManager { get; } public ISukiDialogManager DialogManager { get; } private readonly IThemeService _themeService; diff --git a/MapWizard.Desktop/Views/ComboColourStudio/ComboColourStudioView.axaml b/MapWizard.Desktop/Views/ComboColourStudio/ComboColourStudioView.axaml index c81fb31..2124751 100644 --- a/MapWizard.Desktop/Views/ComboColourStudio/ComboColourStudioView.axaml +++ b/MapWizard.Desktop/Views/ComboColourStudio/ComboColourStudioView.axaml @@ -8,11 +8,13 @@ xmlns:materialIcons="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia" xmlns:suki="clr-namespace:SukiUI.Controls;assembly=SukiUI" xmlns:theme="https://github.com/kikipoulet/SukiUI" + xmlns:models="using:MapWizard.Desktop.Models" xmlns:vm="clr-namespace:MapWizard.Desktop.ViewModels" mc:Ignorable="d" d:DesignWidth="900" d:DesignHeight="700" x:Class="MapWizard.Desktop.Views.ComboColourStudio.ComboColourStudioView" + x:Name="Root" x:DataType="vm:ComboColourStudioViewModel" Padding="16"> @@ -164,7 +166,7 @@ - +