3 writes to Lightness
PresentationFramework.Classic (3)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
208
this.
Lightness
= lightness;
394
hls.
Lightness
= (hls.Lightness + 1.0f) * 0.5f;
403
hls.
Lightness
= hls.Lightness * 0.666f;
10 references to Lightness
PresentationFramework.Classic (10)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (10)
320
Debug.Assert(hlsColor.
Lightness
>= 0 && hlsColor.
Lightness
<= 1, "Lightness must be between 0 and 1.");
327
red = green = blue = hlsColor.
Lightness
;
335
if (hlsColor.
Lightness
<= 0.5f)
336
m2 = hlsColor.
Lightness
* (1 + hlsColor.Saturation);
338
m2 = hlsColor.
Lightness
+ hlsColor.Saturation - hlsColor.
Lightness
* hlsColor.Saturation;
340
float m1 = 2 * hlsColor.
Lightness
- m2;
394
hls.Lightness = (hls.
Lightness
+ 1.0f) * 0.5f;
403
hls.Lightness = hls.
Lightness
* 0.666f;