8 references to Darken
System.Windows.Forms (8)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonColorMath.cs (1)
39PushButtonState.Pressed => PopupButtonColorMath.Darken(accentColor, DefaultPressedDarkenAmount),
System\Windows\Forms\Rendering\Button\PopupButtonColorMath.cs (3)
138? Darken(color, amount) 172? Darken(color, push) 192=> Darken(surface, 0.34f * strength);
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (4)
500: PopupButtonColorMath.Darken(context.BackColor, 0.1f); 867Color bodyDark = PopupButtonColorMath.Darken(back, metrics.ShadowAmount * 0.9f * contrast); 868Color bowlCenter = PopupButtonColorMath.Darken(back, (metrics.ShadowAmount * 0.75f * contrast) + (enabled ? 0f : 0.02f)); 908LipDark = PopupButtonColorMath.Darken(back, metrics.ShadowAmount * 1.2f * contrast),