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