Windows 0.3.3 dashboard layout and speed presentation source delta; no private history or other platform changes

This commit is contained in:
2026-11-03 15:15:23 +00:00
parent bfe8d6c62a
commit aff1a50d35
32 changed files with 1673 additions and 652 deletions
+22 -5
View File
@@ -180,7 +180,16 @@ internal static class StartupSelfTest
report["login_surface_repaint_does_not_accumulate_alpha"] = stable;
report["login_surface_is_not_opaque_white"] = first.GetPixel(S(40), S(300)).ToArgb() != Color.White.ToArgb();
report["login_card_background_at_least_two_thirds_transparent"] = RoundedCardPanel.SurfaceAlpha <= 85;
int Tint(int value) => (255 * RoundedCardPanel.SurfaceAlpha + value * (255 - RoundedCardPanel.SurfaceAlpha)) / 255;
// The login card uses the blue glass surface (238,247,255), not pure
// white. Keep the same strict pixel tolerance while predicting each
// channel of that tint over the artwork in parent coordinates.
Color Tint(Color background)
{
int Channel(int value, int tint) => (tint * RoundedCardPanel.SurfaceAlpha
+ value * (255 - RoundedCardPanel.SurfaceAlpha)) / 255;
return Color.FromArgb(Channel(background.R, 238), Channel(background.G, 247), Channel(background.B, 255));
}
var tintedPlainSurface = Tint(Brand.Surface);
var sceneryVisible = false;
var contrast = double.MaxValue;
for (var x = S(36); x < card.Width - S(36); x += S(17))
@@ -189,8 +198,8 @@ internal static class StartupSelfTest
var background = first.GetPixel(x, y);
contrast = Math.Min(contrast, Contrast(Brand.Navy, background));
if (y < S(170))
sceneryVisible |= Math.Abs(background.R - Tint(Brand.Surface.R))
+ Math.Abs(background.G - Tint(Brand.Surface.G)) + Math.Abs(background.B - Tint(Brand.Surface.B)) > 12;
sceneryVisible |= Math.Abs(background.R - tintedPlainSurface.R)
+ Math.Abs(background.G - tintedPlainSurface.G) + Math.Abs(background.B - tintedPlainSurface.B) > 12;
}
report["login_landscape_visible_behind_upper_card"] = sceneryVisible;
report["login_secondary_text_contrast_at_least_4_5"] = contrast >= 4.5;
@@ -205,13 +214,21 @@ internal static class StartupSelfTest
report["login_optional_unlicensed_scene_omitted"] = !ScenicTheme.LoginSceneAvailable;
report["login_original_landscape_fallback_available"] = ScenicTheme.ArtworkAvailable;
var originCorrect = true;
var maximumChannelError = 0;
var originPixels = new List<object>();
foreach (var point in new[] { P(40, 180), P(220, 300), P(400, 330) })
{
var background = backdrop.GetPixel(card.Left + point.X, card.Top + point.Y);
var actual = moved.GetPixel(point.X, point.Y);
originCorrect &= Math.Abs(actual.R - Tint(background.R)) <= 2
&& Math.Abs(actual.G - Tint(background.G)) <= 2 && Math.Abs(actual.B - Tint(background.B)) <= 2;
var expected = Tint(background);
var difference = Math.Max(Math.Abs(actual.R - expected.R),
Math.Max(Math.Abs(actual.G - expected.G), Math.Abs(actual.B - expected.B)));
maximumChannelError = Math.Max(maximumChannelError, difference);
originCorrect &= difference <= 2;
originPixels.Add(new { point.X, point.Y, background = background.ToArgb(), actual = actual.ToArgb(), expected = expected.ToArgb(), difference });
}
report["login_surface_move_pixel_probes"] = originPixels;
report["login_surface_move_maximum_channel_error"] = maximumChannelError;
report["login_surface_move_keeps_parent_artwork_coordinates"] = originCorrect;
}