Skip to content

Commit

Permalink
UI: Update to Avalonia 11.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SourMesen committed Nov 11, 2024
1 parent 2973c43 commit e18db92
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
6 changes: 6 additions & 0 deletions UI/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Avalonia.Controls.Platform;
using Avalonia.Markup.Xaml;
using Avalonia.Styling;
using Avalonia.Threading;
using Mesen.Config;
using Mesen.Interop;
using Mesen.Localization;
Expand All @@ -26,6 +27,11 @@ public override void Initialize()
} else {
RequestedThemeVariant = ConfigManager.Config.Preferences.Theme == MesenTheme.Dark ? ThemeVariant.Dark : ThemeVariant.Light;
}

Dispatcher.UIThread.UnhandledException += (s, e) => {
MesenMsgBox.ShowException(e.Exception);
e.Handled = true;
};

AvaloniaXamlLoader.Load(this);
ResourceHelper.LoadResources();
Expand Down
2 changes: 1 addition & 1 deletion UI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public static AppBuilder BuildAvaloniaApp()
.With(new X11PlatformOptions {
EnableInputFocusProxy = Environment.GetEnvironmentVariable("XDG_CURRENT_DESKTOP") == "gamescope",
})
.With(new AvaloniaNativePlatformOptions { })
.With(new AvaloniaNativePlatformOptions { RenderingMode = new AvaloniaNativeRenderingMode[] { AvaloniaNativeRenderingMode.OpenGl, AvaloniaNativeRenderingMode.Software } })
.LogToTrace();
}
}
21 changes: 10 additions & 11 deletions UI/UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,18 @@
<TrimmerRootAssembly Include="Dock.Settings" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.0.999-cibuild0045373-beta" />
<PackageReference Include="Avalonia.AvaloniaEdit" Version="11.0.6" />
<PackageReference Include="Avalonia.Desktop" Version="11.0.999-cibuild0045373-beta" />
<PackageReference Include="Avalonia.Controls.ColorPicker" Version="11.0.999-cibuild0045373-beta" />
<PackageReference Include="Avalonia.Diagnostics" Version="11.0.999-cibuild0045373-beta" Condition="'$(OptimizeUi)'!='true'" />
<PackageReference Include="Avalonia.ReactiveUI" Version="11.0.999-cibuild0045373-beta" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.999-cibuild0045373-beta" />
<PackageReference Include="Dock.Avalonia" Version="11.0.10" />
<PackageReference Include="Dock.Model.Mvvm" Version="11.0.10" />
<PackageReference Include="Avalonia" Version="11.2.0" />
<PackageReference Include="Avalonia.AvaloniaEdit" Version="11.1.0" />
<PackageReference Include="Avalonia.Desktop" Version="11.2.0" />
<PackageReference Include="Avalonia.Controls.ColorPicker" Version="11.2.0" />
<PackageReference Include="Avalonia.Diagnostics" Version="11.2.0" Condition="'$(OptimizeUi)'!='true'" />
<PackageReference Include="Avalonia.ReactiveUI" Version="11.2.0" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.2.0" />
<PackageReference Include="Dock.Avalonia" Version="11.2.0" />
<PackageReference Include="Dock.Model.Mvvm" Version="11.2.0" />
<PackageReference Include="Dotnet.Bundle" Version="*" />
<PackageReference Include="ELFSharp" Version="2.17.3" />
<PackageReference Include="Microsoft.Win32.Registry" Version="6.0.0-preview.5.21301.5" />
<PackageReference Include="ReactiveUI.Fody" Version="19.5.39" />
<PackageReference Include="ReactiveUI.Fody" Version="19.5.41" />
</ItemGroup>
<ItemGroup>
<Compile Update="Controls\ButtonWithIcon.axaml.cs">
Expand Down
2 changes: 1 addition & 1 deletion UI/Views/OtherConsolesConfigView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<ScrollViewer AllowAutoHide="False" HorizontalScrollBarVisibility="Auto" Padding="0 0 2 0">
<StackPanel>
<Grid ColumnDefinitions="Auto,Auto,*" RowDefinitions="Auto,Auto,Auto">
<v:CvConfigView DataContext="{Binding}" />
<v:CvConfigView />
</Grid>
</StackPanel>
</ScrollViewer>
Expand Down

0 comments on commit e18db92

Please sign in to comment.