// Token: 0x06006D75 RID: 28021 RVA: 0x001F6D14 File Offset: 0x001F4F14 private static void OnUpdateHighContrast(HighContrastCallback highContrastCallback) { bool highContrast = SystemParameters.HighContrast; Color windowTextColor = SystemColors.WindowTextColor; if (highContrast) { highContrastCallback.TurnHighContrastOn(windowTextColor); return; } highContrastCallback.TurnHighContrastOff(); }
/// <summary> /// Invoke the callback /// </summary> /// <param name="highContrastCallback"></param> private static void OnUpdateHighContrast(HighContrastCallback highContrastCallback) { // Get the current setting. bool isHighContrast = SystemParameters.HighContrast; Color windowTextColor = SystemColors.WindowTextColor; if (isHighContrast) { highContrastCallback.TurnHighContrastOn(windowTextColor); } else { highContrastCallback.TurnHighContrastOff(); } }
/// <summary> /// Invoke the callback /// </summary> /// <param name="highContrastCallback"></param> private static void OnUpdateHighContrast(HighContrastCallback highContrastCallback) { // Get the current setting. bool isHighContrast = SystemParameters.HighContrast; Color windowTextColor = SystemColors.WindowTextColor; if ( isHighContrast ) { highContrastCallback.TurnHighContrastOn(windowTextColor); } else { highContrastCallback.TurnHighContrastOff(); } }