ComponentFactory.Krypton.Toolkit.ThemeService.GetWindowBackgroundColor C# (CSharp) Method

GetWindowBackgroundColor() public static method

public static GetWindowBackgroundColor ( ) : Color
return System.Drawing.Color
        public static Color GetWindowBackgroundColor()
        {
            string resource;
            if (SystemInformation.HighContrast)
            {
                resource = "ImmersiveApplicationBackground";
            }
            else if (UserSystemPreferencesService.UseAccentColor)
            {
                resource = IsWindowTransparencyEnabled ? "ImmersiveSystemAccentDark2" : "ImmersiveSystemAccentDark1";
            }
            else
            {
                resource = "ImmersiveDarkChromeMedium";
            }

            var color = AccentColorService.GetColorByTypeName(resource);
            //return color;
            //color.A = (byte)(IsWindowTransparencyEnabled ? 190 : 255);
            return Color.FromArgb(IsWindowTransparencyEnabled ? 190 : 255, color.R, color.G, color.B);
        }