Browse Source

keep color balancing proportional to win ui.

pull/4043/head
Dan Walmsley 6 years ago
parent
commit
00db860270
  1. 6
      src/Avalonia.Visuals/Media/ExperimentalAcrylicMaterial.cs

6
src/Avalonia.Visuals/Media/ExperimentalAcrylicMaterial.cs

@ -180,9 +180,9 @@ namespace Avalonia.Media
const double midPoint = 0.5; // Mid point of HsvV range that these calculations are based on. This is here for easy tuning. const double midPoint = 0.5; // Mid point of HsvV range that these calculations are based on. This is here for easy tuning.
const double whiteMaxOpacity = 0.15; // 100% luminosity const double whiteMaxOpacity = 0.2; // 100% luminosity
const double midPointMaxOpacity = 0.40; // 50% luminosity const double midPointMaxOpacity = 0.45; // 50% luminosity
const double blackMaxOpacity = 0.40; // 0% luminosity const double blackMaxOpacity = 0.42; // 0% luminosity
var hsv = RgbToHsv(tintColor); var hsv = RgbToHsv(tintColor);

Loading…
Cancel
Save