diff --git a/BetterGenshinImpact.sln.DotSettings b/BetterGenshinImpact.sln.DotSettings index 46e57701..8cc26dc7 100644 --- a/BetterGenshinImpact.sln.DotSettings +++ b/BetterGenshinImpact.sln.DotSettings @@ -1,2 +1,5 @@  - True \ No newline at end of file + True + True + True + True \ No newline at end of file diff --git a/BetterGenshinImpact/App.xaml.cs b/BetterGenshinImpact/App.xaml.cs index abf1b719..abf005e1 100644 --- a/BetterGenshinImpact/App.xaml.cs +++ b/BetterGenshinImpact/App.xaml.cs @@ -4,6 +4,7 @@ using System.IO; using System.Threading.Tasks; using System.Windows; using System.Windows.Threading; +using BetterGenshinImpact.Core.Recognition.ONNX; using BetterGenshinImpact.GameTask; using BetterGenshinImpact.Helpers; using BetterGenshinImpact.Helpers.Extensions; @@ -125,6 +126,8 @@ public partial class App : Application services.AddSingleton(); services.AddSingleton(); services.AddSingleton(); + services.AddSingleton(sp=> sp.GetRequiredService().Config.HardwareAccelerationConfig); + services.AddSingleton(); // Configuration //services.Configure(context.Configuration.GetSection(nameof(AppConfig))); @@ -132,6 +135,8 @@ public partial class App : Application ) .Build(); + public static IServiceProvider ServiceProvider => _host.Services; + public static ILogger GetLogger() { return _host.Services.GetService>()!; diff --git a/BetterGenshinImpact/Assets/Strings/md2html.html b/BetterGenshinImpact/Assets/Strings/md2html.html index 29d1d4a7..429babf3 100644 --- a/BetterGenshinImpact/Assets/Strings/md2html.html +++ b/BetterGenshinImpact/Assets/Strings/md2html.html @@ -18,14 +18,10 @@ ::-webkit-scrollbar-thumb:hover { background: #555; } - .body { - background-color: #202020; - color: #e6edf3; - } .markdown-body { margin: 0; padding: 8px; - background-color: #202020; + background-color: #202020 !important; height: 100% } * { @@ -33,7 +29,7 @@ } - +