16 instantiations of HLSColor
System.Windows.Forms (16)
System\Windows\Forms\Rendering\ControlPaint.cs (16)
371
public static Color Dark(Color baseColor, float percOfDarkDark) => new
HLSColor
(baseColor).Darker(percOfDarkDark);
376
public static Color Dark(Color baseColor) => new
HLSColor
(baseColor).Darker(0.5f);
381
public static Color DarkDark(Color baseColor) => new
HLSColor
(baseColor).Darker(1.0f);
388
internal static bool IsDarker(Color c1, Color c2) => new
HLSColor
(c1).Luminosity < new
HLSColor
(c2).Luminosity;
748
HLSColor hlsColor =
new
(topColor);
807
HLSColor hlsColor =
new
(leftColor);
876
HLSColor hlsColor =
new
(bottomColor);
950
HLSColor hlsColor =
new
(rightColor);
1062
HLSColor hls =
new
(color);
1101
HLSColor hls =
new
(color);
2266
=> new
HLSColor
(baseColor).Lighter(percOfLightLight);
2271
public static Color Light(Color baseColor) => new
HLSColor
(baseColor).Lighter(0.5f);
2276
public static Color LightLight(Color baseColor) => new
HLSColor
(baseColor).Lighter(1.0f);
2410
HLSColor backgroundColorWrapper =
new
(backgroundColor);
2419
HLSColor pixelColorWrapper =
new
(pixel);
15 references to HLSColor
System.Windows.Forms (15)
System\Windows\Forms\Rendering\ControlPaint.cs (8)
748
HLSColor
hlsColor = new(topColor);
807
HLSColor
hlsColor = new(leftColor);
876
HLSColor
hlsColor = new(bottomColor);
950
HLSColor
hlsColor = new(rightColor);
1062
HLSColor
hls = new(color);
1101
HLSColor
hls = new(color);
2410
HLSColor
backgroundColorWrapper = new(backgroundColor);
2419
HLSColor
pixelColorWrapper = new(pixel);
System\Windows\Forms\Rendering\ControlPaint.HLSColor.cs (7)
13
private readonly struct HLSColor : IEquatable<
HLSColor
>
124
if (o is not
HLSColor
hlsColor)
132
public bool Equals(
HLSColor
other)
140
public static bool operator ==(
HLSColor
a,
HLSColor
b) => a.Equals(b);
142
public static bool operator !=(
HLSColor
a,
HLSColor
b) => !a.Equals(b);