This commit is contained in:
ShrlAlgo
2025-07-11 09:20:23 +08:00
parent c7b104f44f
commit 4d35cadb56
840 changed files with 102347 additions and 11595 deletions

View File

@@ -33,7 +33,7 @@ public static class AccentColorManager
if (secondaryAccent.GetBrightness() > BackgroundBrightnessThresholdValue)
{
System.Diagnostics.Debug.WriteLine("INFO | Text on accent is DARK", "WPFluent.Accent");
System.Diagnostics.Debug.WriteLine("INFO | Text on accent is DARK", "WPFluent.Primary");
ThemeManager.Current.Resources["TextOnAccentFillColorPrimary"] = Color.FromArgb(0xFF, 0x00, 0x00, 0x00);
ThemeManager.Current.Resources["TextOnAccentFillColorSecondary"] = Color.FromArgb(0x80, 0x00, 0x00, 0x00);
ThemeManager.Current.Resources["TextOnAccentFillColorDisabled"] = Color.FromArgb(0x77, 0x00, 0x00, 0x00);
@@ -46,7 +46,7 @@ public static class AccentColorManager
}
else
{
System.Diagnostics.Debug.WriteLine("INFO | Text on accent is LIGHT", "WPFluent.Accent");
System.Diagnostics.Debug.WriteLine("INFO | Text on accent is LIGHT", "WPFluent.Primary");
ThemeManager.Current.Resources["TextOnAccentFillColorPrimary"] = Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF);
ThemeManager.Current.Resources["TextOnAccentFillColorSecondary"] = Color.FromArgb(0x80, 0xFF, 0xFF, 0xFF);
ThemeManager.Current.Resources["TextOnAccentFillColorDisabled"] = Color.FromArgb(0x87, 0xFF, 0xFF, 0xFF);
@@ -59,7 +59,7 @@ public static class AccentColorManager
}
ThemeManager.Current.Resources["SystemAccentColor"] = systemAccent;
ThemeManager.Current.Resources["SystemAccentColorPrimary"] = primaryAccent;
ThemeManager.Current.Resources["SystemFillColorAttention"] = primaryAccent;
ThemeManager.Current.Resources["SystemAccentColorSecondary"] = secondaryAccent;
ThemeManager.Current.Resources["SystemAccentColorTertiary"] = tertiaryAccent;
@@ -126,13 +126,13 @@ public static class AccentColorManager
{ UpdateColorResources(systemAccent, primaryAccent, secondaryAccent, tertiaryAccent); }
/// <summary>
/// 获取SystemAccentColorPrimary.
/// 获取SystemFillColorAttention.
/// </summary>
public static Color PrimaryAccent
{
get
{
object? resource = ThemeManager.Current.Resources["SystemAccentColorPrimary"];
object? resource = ThemeManager.Current.Resources["SystemFillColorAttention"];
if (resource is Color color)
{
@@ -144,7 +144,7 @@ public static class AccentColorManager
}
/// <summary>
/// Gets the <see cref="Brush"/> of the SystemAccentColorPrimary.
/// Gets the <see cref="Brush"/> of the SystemFillColorAttention.
/// </summary>
public static Brush PrimaryAccentBrush => new SolidColorBrush(PrimaryAccent);