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