Skip to content

Commit 789efd6

Browse files
author
James Brundage
committed
style: WebSocket Logo ( Fixes #5 )
Anchoring only text to middle
1 parent c7c8df1 commit 789efd6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Build/WebSocket.PSSVG.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ foreach ($variant in '','Animated') {
9292
Style="font-family:`"$fontName`",sans-serif"
9393
Fill='#4488FF'
9494
Class='foreground-fill'
95-
DominantBaseline='middle'
96-
TextAnchor='middle'
95+
DominantBaseline='middle'
9796
}
9897

9998
svg -Content @(
@@ -102,6 +101,6 @@ foreach ($variant in '','Animated') {
102101
SVG.Use -Href '#PowerShellWeb' -Height 60% -Width 60% -X 20% -Y 20%
103102
SVG.Text -X 42% -Y 50% @TextSplat -Content '||'
104103
SVG.Text -X 54% -Y 50% @TextSplat -Content '||'
105-
SVG.text -X 50% -Y 80% @TextSplat -Content 'WebSocket'
104+
SVG.text -X 50% -Y 80% @TextSplat -Content 'WebSocket' -TextAnchor 'middle'
106105
) -OutputPath $outputPath -ViewBox 0, 0, 1080, 1080
107106
}

0 commit comments

Comments
 (0)