Skip to content

Commit dc03c46

Browse files
Colin MackayColin Mackay
authored andcommitted
Fix up ellipses
1 parent 92de05f commit dc03c46

21 files changed

+44
-21
lines changed

helpers/PhosphorIcons/StyleSvg.ps1

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ foreach ($file in $svgFiles) {
3030
}
3131
}
3232

33+
# All ellipse elements should get the fill="currentColor" attribute
34+
$ellipseElements = $svgXml.GetElementsByTagName("ellipse")
35+
foreach ($ellipse in $ellipseElements) {
36+
if (-not $ellipse.HasAttribute("fill")) {
37+
$ellipse.SetAttribute("fill", "currentColor")
38+
Write-Host "Added <ellipse ... fill=`"currentColor`"> in: $($file.FullName)"
39+
}
40+
}
41+
3342
# All path elements with an opacity attribute should get fill="currentColor"
3443
$pathElements = $svgXml.GetElementsByTagName("path")
3544
foreach ($path in $pathElements) {
@@ -39,6 +48,15 @@ foreach ($file in $svgFiles) {
3948
}
4049
}
4150

51+
# All g elements with an opacity attribute should get fill="currentColor"
52+
$gElements = $svgXml.GetElementsByTagName("g")
53+
foreach ($g in $gElements) {
54+
if ($g.HasAttribute("opacity") -and -not $g.HasAttribute("fill")) {
55+
$g.SetAttribute("fill", "currentColor")
56+
Write-Host "Added <g ... fill=`"currentColor`"> in: $($file.FullName)"
57+
}
58+
}
59+
4260
# All rect elements with an opacity attribute should get fill="currentColor"
4361
$rectElements = $svgXml.GetElementsByTagName("rect")
4462
foreach ($rect in $rectElements) {
Lines changed: 2 additions & 2 deletions
Loading

src/Stravaig.Avalonia.Controls.Icons/Assets/PhosphorIcons/bold/tire-bold.svg

Lines changed: 1 addition & 1 deletion
Loading

src/Stravaig.Avalonia.Controls.Icons/Assets/PhosphorIcons/duotone/atom-duotone.svg

Lines changed: 1 addition & 1 deletion
Loading

src/Stravaig.Avalonia.Controls.Icons/Assets/PhosphorIcons/duotone/baseball-duotone.svg

Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 1 addition & 1 deletion
Loading

src/Stravaig.Avalonia.Controls.Icons/Assets/PhosphorIcons/duotone/coin-duotone.svg

Lines changed: 1 addition & 1 deletion
Loading

src/Stravaig.Avalonia.Controls.Icons/Assets/PhosphorIcons/duotone/coin-vertical-duotone.svg

Lines changed: 1 addition & 1 deletion
Loading

src/Stravaig.Avalonia.Controls.Icons/Assets/PhosphorIcons/duotone/coins-duotone.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)