3 writes to Lightness
PresentationFramework.Classic (3)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
203
this.
Lightness
= lightness;
389
hls.
Lightness
= (hls.Lightness + 1.0f) * 0.5f;
398
hls.
Lightness
= hls.Lightness * 0.666f;
10 references to Lightness
PresentationFramework.Classic (10)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (10)
315
Debug.Assert(hlsColor.
Lightness
>= 0 && hlsColor.
Lightness
<= 1, "Lightness must be between 0 and 1.");
322
red = green = blue = hlsColor.
Lightness
;
330
if (hlsColor.
Lightness
<= 0.5f)
331
m2 = hlsColor.
Lightness
* (1 + hlsColor.Saturation);
333
m2 = hlsColor.
Lightness
+ hlsColor.Saturation - hlsColor.
Lightness
* hlsColor.Saturation;
335
float m1 = 2 * hlsColor.
Lightness
- m2;
389
hls.Lightness = (hls.
Lightness
+ 1.0f) * 0.5f;
398
hls.Lightness = hls.
Lightness
* 0.666f;