Skip to content

Commit

Permalink
refactor: inherit from PathIcon and use own style again
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Oct 26, 2024
1 parent 33d9a28 commit 5d1edaa
Show file tree
Hide file tree
Showing 6 changed files with 663 additions and 744 deletions.
2 changes: 1 addition & 1 deletion src/AvaloniaApp/App.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
ListLow="#ff134b82" ListMedium="#ff2f7bad" RegionColor="#ff0d2644" />
</FluentTheme.Palettes>
</FluentTheme>
<!-- <StyleInclude Source="avares://AvaloniaIconPacks/BoxIcons.xaml"/> -->
<StyleInclude Source="avares://AvaloniaIconPacks/BoxIcons.xaml"/>
</Application.Styles>
</Application>
38 changes: 19 additions & 19 deletions src/AvaloniaIconPacks/Core/PackIconBase.cs
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#if (NETFX_CORE || WINDOWS_UWP)
using Windows.UI.Xaml.Controls;
#elif AVALONIA
using Avalonia.Controls.Primitives;
#else
using System.Windows.Controls;
#endif

namespace MahApps.Metro.IconPacks
{
#if AVALONIA
public abstract class PackIconBase : TemplatedControl
#else
public abstract class PackIconBase : Control
#endif
{
protected internal abstract void SetKind<TKind>(TKind iconKind);
protected abstract void UpdateData();
}
#if (NETFX_CORE || WINDOWS_UWP)
using Windows.UI.Xaml.Controls;
#elif AVALONIA
using Avalonia.Controls;
#else
using System.Windows.Controls;
#endif

namespace MahApps.Metro.IconPacks
{
#if AVALONIA
public abstract class PackIconBase : PathIcon
#else
public abstract class PackIconBase : Control
#endif
{
protected internal abstract void SetKind<TKind>(TKind iconKind);
protected abstract void UpdateData();
}
}
Loading

0 comments on commit 5d1edaa

Please sign in to comment.