22 instantiations of FillPathCommand
Aspire.Tray.Tests (22)
src\Aspire.Tray\Common\TrayPanel.cs (18)
943
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(panel, CornerRadius), palette.Background));
944
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(footer, 0, 0, CornerRadius, CornerRadius), palette.Gutter));
945
commands.Add(new
FillPathCommand
(PanelPath.Rectangle(new(0, footer.Y, Width, 1)), palette.Separator));
948
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(new(0, 0, Width, HeaderHeight), CornerRadius, CornerRadius, 0, 0), palette.Gutter));
949
commands.Add(new
FillPathCommand
(PanelPath.Rectangle(new(0, HeaderHeight - 1, Width, 1)), palette.Separator));
968
commands.Add(new
FillPathCommand
(PanelPath.Rectangle(new(0, _viewport.Y, Width, 1)), palette.Separator));
1018
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(thumb, 2), palette.TextTertiary.WithAlpha(0.4)));
1185
commands.Add(new
FillPathCommand
(PanelPath.Circle(title.Right + 4, statusMiddle, 4), dot));
1202
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(banner, 6), palette.Banner));
1294
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(row, 6), palette.Hover));
1334
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(bounds, 6), palette.Pressed));
1405
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(card, 8), palette.Gutter));
1477
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(card, 8), palette.Gutter));
1506
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(cancelBounds, 6), palette.Background));
1512
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(acceptBounds, 6), palette.DangerFill));
1516
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(acceptBounds, 6),
1603
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(bounds, 6), palette.Pressed));
1618
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(bounds, 6), fill));
src\Aspire.Tray\Common\TrayPanelGlyphs.cs (4)
92
void Fill(PanelPath path, PanelColor color) => commands.Add(new
FillPathCommand
(path.Transform(scale, bounds.X, bounds.Y), color));
194
void Fill(PanelPath path) => commands.Add(new
FillPathCommand
(path.Transform(scale, bounds.X, bounds.Y), color));
210
commands.Add(new
FillPathCommand
(PanelPath.RoundedRect(track, 9).Transform(scale, bounds.X, bounds.Y),
218
commands.Add(new
FillPathCommand
(PanelPath.Circle(on ? 23 : 9, 9, 6.5).Transform(scale, bounds.X, bounds.Y),
13 references to FillPathCommand
Aspire.Tray.Tests (13)
Helpers\TrayPanelSvgRenderer.cs (2)
52
case
FillPathCommand
fill:
69
FillPathCommand
fill => new XElement(s_svg + "path", new XAttribute("d", ToPathData(fill.Path)), Paint("fill", fill.Color)),
src\Aspire.Tray\Linux\LinuxTrayPanel.cs (1)
637
case
FillPathCommand
fill:
TrayPanelTests.cs (10)
1050
var
dot = scene.Commands.OfType<
FillPathCommand
>().Single(fill => fill.Path.GetControlBounds() is { Width: 8, Height: 8 } bounds
1073
var gutters = scene.Commands.OfType<
FillPathCommand
>().Where(fill => fill.Color == palette.Gutter)
1082
var separators = scene.Commands.OfType<
FillPathCommand
>().Where(fill => fill.Color == palette.Separator)
1263
var
fill = panel.Scene.Commands.OfType<
FillPathCommand
>().Last(fill => fill.Path.GetControlBounds().Contains(accept.Bounds.CenterX, accept.Bounds.CenterY)
1291
Assert.Equal(palette.DangerFill, commands.OfType<
FillPathCommand
>().First().Color);
1336
Assert.Equal(disc, Assert.IsType<
FillPathCommand
>(commands[0]).Color);
1339
FillPathCommand
fill => fill.Color,
1614
FillPathCommand
fill => (fill.Path, 0.0),