7 references to ToHex
Aspire.Tray.Tests (7)
Helpers\TrayPanelSvgRenderer.cs (2)
200? [new XAttribute(name, color.ToHex())] 201: [new XAttribute(name, (color with { A = 255 }).ToHex()), new XAttribute(name + "-opacity", F(color.Alpha))];
TrayPanelTests.cs (5)
1012Assert.Equal("#11223344", PanelColor.FromHex("#11223344").ToHex()); 1050$"{name}: {text.ToHex()} on {background.ToHex()} is {TrayPanelPalette.ContrastRatio(text, background):F2}:1")); 1095Assert.True(ratio >= TrayPanelPalette.MinimumMarkContrast, $"{name} {glyph}: {mark.ToHex()} on {disc.ToHex()} is {ratio:F2}:1");