From 789efd66b385f5d12b7502088f5b5c8da62b32ae Mon Sep 17 00:00:00 2001 From: James Brundage <+@noreply.github.com> Date: Wed, 27 Nov 2024 00:34:01 -0800 Subject: [PATCH] style: WebSocket Logo ( Fixes #5 ) Anchoring only text to middle --- Build/WebSocket.PSSVG.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Build/WebSocket.PSSVG.ps1 b/Build/WebSocket.PSSVG.ps1 index 96f119d..b29c434 100644 --- a/Build/WebSocket.PSSVG.ps1 +++ b/Build/WebSocket.PSSVG.ps1 @@ -92,8 +92,7 @@ foreach ($variant in '','Animated') { Style="font-family:`"$fontName`",sans-serif" Fill='#4488FF' Class='foreground-fill' - DominantBaseline='middle' - TextAnchor='middle' + DominantBaseline='middle' } svg -Content @( @@ -102,6 +101,6 @@ foreach ($variant in '','Animated') { SVG.Use -Href '#PowerShellWeb' -Height 60% -Width 60% -X 20% -Y 20% SVG.Text -X 42% -Y 50% @TextSplat -Content '||' SVG.Text -X 54% -Y 50% @TextSplat -Content '||' - SVG.text -X 50% -Y 80% @TextSplat -Content 'WebSocket' + SVG.text -X 50% -Y 80% @TextSplat -Content 'WebSocket' -TextAnchor 'middle' ) -OutputPath $outputPath -ViewBox 0, 0, 1080, 1080 }