12 references to GetContrastRatio
System.Windows.Forms (12)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonColorMath.cs (2)
45float blackContrast = PopupButtonColorMath.GetContrastRatio(Color.Black, backColor); 46float whiteContrast = PopupButtonColorMath.GetContrastRatio(Color.White, backColor);
System\Windows\Forms\Rendering\Button\PopupButtonColorMath.cs (6)
52=> GetContrastRatio(Color.Black, backColor) >= GetContrastRatio(Color.White, backColor) 62GetContrastRatio(Color.Black, darkestBackColor), 63GetContrastRatio(Color.Black, lightestBackColor)); 65GetContrastRatio(Color.White, darkestBackColor), 66GetContrastRatio(Color.White, lightestBackColor));
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (2)
891PopupButtonColorMath.GetContrastRatio(text, darkestBowl), 892PopupButtonColorMath.GetContrastRatio(text, lightestBowl));
System\Windows\Forms\Rendering\ModernControlColorMath.cs (2)
93=> PopupButtonColorMath.GetContrastRatio( 96&& PopupButtonColorMath.GetContrastRatio(