Bump FluentAvalonia to lastest

Bump titanium-web-proxy to lastest
This commit is contained in:
RMBGAME
2022-02-11 18:02:06 +08:00
parent 2eec779a00
commit 2e96d594df
6 changed files with 13 additions and 16 deletions
+1 -4
View File
@@ -21,10 +21,7 @@
</Application.Resources>
<Application.Styles>
<!--<FluentTheme Mode="Dark" />-->
<sty:FluentAvaloniaTheme RequestedTheme="Dark"
DefaultToUserTheme="False"
GetUserAccentColor="False"
UseSegoeUIOnWindows="True"/>
<sty:FluentAvaloniaTheme />
<StyleInclude Source="avares://System.Application.SteamTools.Client.Avalonia/Application/UI/Styles/ThemeDark.xaml" />
<StyleInclude Source="avares://System.Application.SteamTools.Client.Avalonia/Application/UI/Styles/ThemeAccent.xaml" />
@@ -152,13 +152,13 @@ namespace System.Application.UI
if (OperatingSystem2.IsWindows)
{
if (OperatingSystem2.IsWindowsVersionAtLeast(6, 2))
thm.GetUserAccentColor = true;
thm.UseUserAccentColorOnWindows = true;
else
thm.GetUserAccentColor = false;
thm.UseUserAccentColorOnWindows = false;
}
else
{
thm.GetUserAccentColor = true;
thm.UseUserAccentColorOnWindows = true;
}
}
@@ -155,9 +155,9 @@ namespace System.Application.Services.Implementation
}
break;
case WM.ACTIVATE:
EnsureExtended();
break;
//case WM.ACTIVATE:
// EnsureExtended();
// break;
case WM.NCMOUSEMOVE:
if (_fakingMaximizeButton)
@@ -17,10 +17,10 @@ namespace System.Application.UI.Views.Windows
SystemDecorations = SystemDecorations.Full;
ExtendClientAreaChromeHints = Avalonia.Platform.ExtendClientAreaChromeHints.PreferSystemChrome;
if (OperatingSystem2.IsWindows11AtLeast)
{
AvaloniaLocator.Current.GetService<FluentAvaloniaTheme>().ForceNativeTitleBarToTheme(this, "Dark");
}
//if (OperatingSystem2.IsWindows11AtLeast)
//{
// AvaloniaLocator.Current.GetService<FluentAvaloniaTheme>().ForceNativeTitleBarToTheme(this, "Dark");
//}
#if DEBUG
this.AttachDevTools();
#endif