Skip to content

Commit b41f969

Browse files
authored
No more inverted svg paths (#387)
Change all inverted svg paths to normal paths.
2 parents d7d1c4a + d7eaa58 commit b41f969

File tree

114 files changed

+78
-696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+78
-696
lines changed

src/MahApps.Metro.IconPacks.BootstrapIcons/PackIconBootstrapIconsImageExtension.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,5 @@ protected override string GetPathData(object iconKind)
3434
}
3535
return data;
3636
}
37-
38-
/// <inheritdoc />
39-
protected override ScaleTransform GetScaleTransform(object iconKind)
40-
{
41-
return new ScaleTransform(1, -1);
42-
}
4337
}
4438
}
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.Windows.Media;
2-
3-
namespace MahApps.Metro.IconPacks.Converter
1+
namespace MahApps.Metro.IconPacks.Converter
42
{
53
public class PackIconBootstrapIconsKindToImageConverter : PackIconKindToImageConverterBase
64
{
@@ -14,11 +12,5 @@ protected override string GetPathData(object iconKind)
1412
}
1513
return data;
1614
}
17-
18-
/// <inheritdoc />
19-
protected override ScaleTransform GetScaleTransform(object iconKind)
20-
{
21-
return new ScaleTransform(1, -1);
22-
}
2315
}
2416
}

src/MahApps.Metro.IconPacks.BootstrapIcons/PathIconBootstrapIcons.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ public PackIconBootstrapIconsKind Kind
3636

3737
public PathIconBootstrapIcons()
3838
{
39-
var transformGroup = this.RenderTransform as TransformGroup ?? new TransformGroup();
40-
var scaleTransform = new ScaleTransform() {ScaleY = -1};
41-
transformGroup.Children.Insert(0, scaleTransform);
4239
}
4340

4441
protected override void UpdateData()

src/MahApps.Metro.IconPacks.BootstrapIcons/Resources/Icons.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/MahApps.Metro.IconPacks.BootstrapIcons/Themes/UAP/PackIconBootstrapIcons.xaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,8 @@
2323
<Viewbox Margin="{TemplateBinding Padding}">
2424
<Path Data="{Binding Data, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay, Converter={converter:NullToUnsetValueConverter}}"
2525
Fill="{TemplateBinding Foreground}"
26-
RenderTransformOrigin="0.5 0.5"
2726
Stretch="Uniform"
28-
UseLayoutRounding="False">
29-
<Path.RenderTransform>
30-
<ScaleTransform ScaleY="-1" />
31-
</Path.RenderTransform>
32-
</Path>
27+
UseLayoutRounding="False" />
3328
</Viewbox>
3429
</Grid>
3530
</Grid>

src/MahApps.Metro.IconPacks.BootstrapIcons/Themes/WPF/PackIconBootstrapIcons.xaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@
2626
Fill="{TemplateBinding Foreground}"
2727
SnapsToDevicePixels="False"
2828
Stretch="Uniform"
29-
UseLayoutRounding="False">
30-
<Path.LayoutTransform>
31-
<ScaleTransform ScaleY="-1" />
32-
</Path.LayoutTransform>
33-
</Path>
29+
UseLayoutRounding="False" />
3430
</Viewbox>
3531
</Grid>
3632
</Grid>

src/MahApps.Metro.IconPacks.BoxIcons/PackIconBoxIconsImageExtension.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,5 @@ protected override string GetPathData(object iconKind)
3434
}
3535
return data;
3636
}
37-
38-
/// <inheritdoc />
39-
protected override ScaleTransform GetScaleTransform(object iconKind)
40-
{
41-
return new ScaleTransform(1, -1);
42-
}
4337
}
4438
}
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.Windows.Media;
2-
3-
namespace MahApps.Metro.IconPacks.Converter
1+
namespace MahApps.Metro.IconPacks.Converter
42
{
53
public class PackIconBoxIconsKindToImageConverter : PackIconKindToImageConverterBase
64
{
@@ -14,11 +12,5 @@ protected override string GetPathData(object iconKind)
1412
}
1513
return data;
1614
}
17-
18-
/// <inheritdoc />
19-
protected override ScaleTransform GetScaleTransform(object iconKind)
20-
{
21-
return new ScaleTransform(1, -1);
22-
}
2315
}
2416
}

src/MahApps.Metro.IconPacks.BoxIcons/PathIconBoxIcons.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ public PackIconBoxIconsKind Kind
3636

3737
public PathIconBoxIcons()
3838
{
39-
var transformGroup = this.RenderTransform as TransformGroup ?? new TransformGroup();
40-
var scaleTransform = new ScaleTransform() {ScaleY = -1};
41-
transformGroup.Children.Insert(0, scaleTransform);
4239
}
4340

4441
protected override void UpdateData()

src/MahApps.Metro.IconPacks.BoxIcons/Resources/Icons.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)