diff --git a/Views/Configuration/SettingPages/ModelColorSetPage.xaml.cs b/Views/Configuration/SettingPages/ModelColorSetPage.xaml.cs index 33ba06a..b351e58 100644 --- a/Views/Configuration/SettingPages/ModelColorSetPage.xaml.cs +++ b/Views/Configuration/SettingPages/ModelColorSetPage.xaml.cs @@ -55,8 +55,11 @@ public partial class ModelColorSetPage // 在这里处理 Content 变化后的逻辑 // 例如: label.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(newContent)); - label.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString(newContent)); - +#if DEBUG + label.Foreground = GetInverseBrush(new SolidColorBrush((Color)ColorConverter.ConvertFromString(newContent))); +#else + label.Foreground = new SolidColorBrush(Colors.Transparent); +#endif } }