14 references to Inset
Aspire.Tray.Tests (14)
src\Aspire.Tray\Common\TrayPanel.cs (11)
896
commands.Add(new StrokePathCommand(PanelPath.RoundedRect(panel.
Inset
(0.5, 0.5), CornerRadius - 0.5), palette.Border, 1));
912
commands.Add(new StrokePathCommand(PanelPath.RoundedRect(focused.Bounds.
Inset
(-1, -1), 7), palette.Focus, 2));
949
commands.Add(new StrokePathCommand(PanelPath.RoundedRect(banner.
Inset
(0.5, 0.5), 5.5), palette.Border, 1));
969
TrayPanelGlyphs.AddStatus(commands, PanelStatusGlyph.Busy, art.
Inset
(2, 2), palette);
1082
TrayPanelGlyphs.AddIcon(commands, icon, bounds.
Inset
(6, 6), color);
1145
commands.Add(new StrokePathCommand(PanelPath.RoundedRect(card.
Inset
(0.5, 0.5), 7.5), palette.Border, 1));
1217
commands.Add(new StrokePathCommand(PanelPath.RoundedRect(card.
Inset
(0.5, 0.5), 7.5), palette.Border, 1));
1247
commands.Add(new StrokePathCommand(PanelPath.RoundedRect(cancelBounds.
Inset
(0.5, 0.5), 5.5), palette.Border, 1));
1260
commands.Add(new StrokePathCommand(PanelPath.RoundedRect(acceptBounds.
Inset
(0.5, 0.5), 5.5), palette.Border, 1));
1271
TrayPanelGlyphs.AddIcon(commands, PanelIcon.ChevronLeft, back.
Inset
(6, 6), _hover == backKey ? palette.TextPrimary : palette.TextSecondary);
1347
TrayPanelGlyphs.AddIcon(commands, icon, bounds.
Inset
(6, 6), _hover == key ? palette.TextPrimary : palette.TextSecondary);
src\Aspire.Tray\Common\TrayPanelGlyphs.cs (1)
215
commands.Add(new StrokePathCommand(PanelPath.RoundedRect(track.
Inset
(0.5, 0.5), 8.5).Transform(scale, bounds.X, bounds.Y),
TrayPanelTests.cs (2)
765
Assert.All(commands, command => Assert.True(box.
Inset
(-0.5, -0.5).Contains(GetBounds(command)), $"{command}"));
1381
return path.GetControlBounds().
Inset
(-width / 2, -width / 2);