3 writes to Lightness
PresentationFramework.Classic (3)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
200this.Lightness = lightness; 386hls.Lightness = (hls.Lightness + 1.0f) * 0.5f; 395hls.Lightness = hls.Lightness * 0.666f;
10 references to Lightness
PresentationFramework.Classic (10)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (10)
312Debug.Assert(hlsColor.Lightness >= 0 && hlsColor.Lightness <= 1, "Lightness must be between 0 and 1."); 319red = green = blue = hlsColor.Lightness; 327if (hlsColor.Lightness <= 0.5f) 328m2 = hlsColor.Lightness * (1 + hlsColor.Saturation); 330m2 = hlsColor.Lightness + hlsColor.Saturation - hlsColor.Lightness * hlsColor.Saturation; 332float m1 = 2 * hlsColor.Lightness - m2; 386hls.Lightness = (hls.Lightness + 1.0f) * 0.5f; 395hls.Lightness = hls.Lightness * 0.666f;