Skip to content

Commit

Permalink
refactor: namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Nov 10, 2024
1 parent 33f3d7f commit 84c514a
Show file tree
Hide file tree
Showing 28 changed files with 55 additions and 44 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Avalonia.Media;
using IconPacks.Avalonia.Core;
using IconPacks.Avalonia.Core.Converter;

namespace IconPacks.Avalonia.Converter
namespace IconPacks.Avalonia.BoxIcons.Converter
{
public class PackIconBoxIconsKindToImageConverter : PackIconKindToImageConverterBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<IconsName>BoxIcons</IconsName>
<AssemblyName>IconPacks.Avalonia.BoxIcons</AssemblyName>
<Title>IconPacks.Avalonia.BoxIcons</Title>
<RootNamespace>IconPacks.Avalonia</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/IconPacks.Avalonia.BoxIcons/PackIconBoxIcons.axaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:iconPacks="urn:iconpacks-avalonia"
xmlns:iconPacks="https://github.com/MahApps/IconPacks.Avalonia"
x:ClassModifier="internal">

<Design.PreviewWith>
Expand Down
5 changes: 3 additions & 2 deletions src/IconPacks.Avalonia.BoxIcons/PackIconBoxIcons.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using Avalonia;
using Avalonia.Media;
using IconPacks.Avalonia.Attributes;
using IconPacks.Avalonia.Core;
using IconPacks.Avalonia.Core.Attributes;

namespace IconPacks.Avalonia
namespace IconPacks.Avalonia.BoxIcons
{
/// <summary>
/// BoxIcons licensed under [SIL OFL 1.1](<see><cref>http://scripts.sil.org/OFL</cref></see>)
Expand Down
3 changes: 2 additions & 1 deletion src/IconPacks.Avalonia.BoxIcons/PackIconBoxIconsExtension.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using Avalonia.Markup.Xaml;
using IconPacks.Avalonia.Core;

namespace IconPacks.Avalonia
namespace IconPacks.Avalonia.BoxIcons
{
public class BoxIconsExtension : BasePackIconExtension
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System;
using Avalonia.Markup.Xaml;
using Avalonia.Media;
using IconPacks.Avalonia.Core;

namespace IconPacks.Avalonia
namespace IconPacks.Avalonia.BoxIcons
{
public class BoxIconsImageExtension : BasePackIconImageExtension
{
Expand Down
2 changes: 1 addition & 1 deletion src/IconPacks.Avalonia.BoxIcons/PackIconBoxIconsKind.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel;

namespace IconPacks.Avalonia
namespace IconPacks.Avalonia.BoxIcons
{
/// ******************************************
/// This code is auto generated. Do not amend.
Expand Down
9 changes: 5 additions & 4 deletions src/IconPacks.Avalonia.BoxIcons/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Avalonia.Metadata;

[assembly: XmlnsPrefix("urn:iconpacks-avalonia", "iconPacks")]
[assembly: XmlnsDefinition("urn:iconpacks-avalonia", "IconPacks")]
[assembly: XmlnsDefinition("urn:iconpacks-avalonia", "IconPacks.Avalonia")]
[assembly: XmlnsDefinition("urn:iconpacks-avalonia", "IconPacks.Avalonia.Converter")]
[assembly: XmlnsPrefix("https://github.com/MahApps/IconPacks.Avalonia", "iconPacks")]
[assembly: XmlnsDefinition("https://github.com/MahApps/IconPacks.Avalonia", "IconPacks")]
[assembly: XmlnsDefinition("https://github.com/MahApps/IconPacks.Avalonia", "IconPacks.Avalonia")]
[assembly: XmlnsDefinition("https://github.com/MahApps/IconPacks.Avalonia", "IconPacks.Avalonia.BoxIcons")]
[assembly: XmlnsDefinition("https://github.com/MahApps/IconPacks.Avalonia", "IconPacks.Avalonia.BoxIcons.Converter")]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace IconPacks.Avalonia.Attributes
namespace IconPacks.Avalonia.Core.Attributes
{
/// <summary>
/// Specifies meta data for a class.
Expand Down
6 changes: 3 additions & 3 deletions src/IconPacks.Avalonia.Core/Converter/MarkupConverter.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using Avalonia.Data.Converters;
using Avalonia.Markup.Xaml;
using System.Globalization;
using Avalonia.Data;
using Avalonia.Data.Converters;
using Avalonia.Markup.Xaml;

namespace IconPacks.Avalonia.Converter
namespace IconPacks.Avalonia.Core.Converter
{
/// <summary>
/// MarkupConverter is a MarkupExtension which can be used for IValueConverter.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using Avalonia.Media;
using System;
using System.Globalization;
using System;
using Avalonia.Data;
using Avalonia.Media;

namespace IconPacks.Avalonia.Converter
namespace IconPacks.Avalonia.Core.Converter
{
public abstract class PackIconKindToImageConverterBase : MarkupConverter
{
Expand Down
1 change: 0 additions & 1 deletion src/IconPacks.Avalonia.Core/IconPacks.Avalonia.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<AssemblyName>IconPacks.Avalonia.Core</AssemblyName>
<Title>IconPacks.Avalonia.Core</Title>
<RootNamespace>IconPacks.Avalonia</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/IconPacks.Avalonia.Core/PackIconBase.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Avalonia.Controls;

namespace IconPacks.Avalonia
namespace IconPacks.Avalonia.Core
{
public abstract class PackIconBase : PathIcon
{
Expand Down
2 changes: 1 addition & 1 deletion src/IconPacks.Avalonia.Core/PackIconControlBase.axaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:iconPacks="urn:iconpacks-avalonia"
xmlns:iconPacks="https://github.com/MahApps/IconPacks.Avalonia"
x:ClassModifier="internal">

<ControlTemplate x:Key="IconPacks.Avalonia.PackIconControlBase.Template" TargetType="iconPacks:PackIconControlBase">
Expand Down
2 changes: 1 addition & 1 deletion src/IconPacks.Avalonia.Core/PackIconControlBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using Avalonia.Media;
using Avalonia.Styling;

namespace IconPacks.Avalonia
namespace IconPacks.Avalonia.Core
{
/// <summary>
/// Class PackIconControlBase which is the base class for any PackIcon control.
Expand Down
2 changes: 1 addition & 1 deletion src/IconPacks.Avalonia.Core/PackIconDataFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Collections.ObjectModel;
using Avalonia.Platform;

namespace IconPacks.Avalonia
namespace IconPacks.Avalonia.Core
{
public static class PackIconDataFactory<TEnum> where TEnum : struct, Enum
{
Expand Down
6 changes: 3 additions & 3 deletions src/IconPacks.Avalonia.Core/PackIconExtension.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Avalonia.Animation.Easings;
using System;
using System;
using Avalonia.Animation.Easings;
using Avalonia.Markup.Xaml;

namespace IconPacks.Avalonia
namespace IconPacks.Avalonia.Core
{
public interface IPackIconExtension
{
Expand Down
2 changes: 1 addition & 1 deletion src/IconPacks.Avalonia.Core/PackIconFlipOrientation.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace IconPacks.Avalonia
namespace IconPacks.Avalonia.Core
{
/// <summary>
/// Enum PackIconFlipOrientation for the Flip property of any PackIcon control.
Expand Down
2 changes: 1 addition & 1 deletion src/IconPacks.Avalonia.Core/PackIconImageExtension.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Avalonia.Markup.Xaml;
using Avalonia.Media;

namespace IconPacks.Avalonia
namespace IconPacks.Avalonia.Core
{
public abstract class BasePackIconImageExtension : MarkupExtension
{
Expand Down
10 changes: 6 additions & 4 deletions src/IconPacks.Avalonia.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Avalonia.Metadata;

[assembly: XmlnsPrefix("urn:iconpacks-avalonia", "iconPacks")]
[assembly: XmlnsDefinition("urn:iconpacks-avalonia", "IconPacks")]
[assembly: XmlnsDefinition("urn:iconpacks-avalonia", "IconPacks.Avalonia")]
[assembly: XmlnsDefinition("urn:iconpacks-avalonia", "IconPacks.Avalonia.Attributes")]
[assembly: XmlnsPrefix("https://github.com/MahApps/IconPacks.Avalonia", "iconPacks")]
[assembly: XmlnsDefinition("https://github.com/MahApps/IconPacks.Avalonia", "IconPacks")]
[assembly: XmlnsDefinition("https://github.com/MahApps/IconPacks.Avalonia", "IconPacks.Avalonia")]
[assembly: XmlnsDefinition("https://github.com/MahApps/IconPacks.Avalonia", "IconPacks.Avalonia.Core")]
[assembly: XmlnsDefinition("https://github.com/MahApps/IconPacks.Avalonia", "IconPacks.Avalonia.Core.Attributes")]
[assembly: XmlnsDefinition("https://github.com/MahApps/IconPacks.Avalonia", "IconPacks.Avalonia.Core.Converter")]
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using Avalonia.Media;
using IconPacks.Avalonia.BoxIcons;
using IconPacks.Avalonia.Core;
using IconPacks.Avalonia.Core.Converter;

namespace IconPacks.Avalonia.Converter
{
Expand Down
1 change: 0 additions & 1 deletion src/IconPacks.Avalonia/IconPacks.Avalonia.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<DefineConstants>$(DefineConstants);ALL</DefineConstants>
<AssemblyName>IconPacks.Avalonia</AssemblyName>
<Title>IconPacks.Avalonia</Title>
<RootNamespace>IconPacks.Avalonia</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/IconPacks.Avalonia/PackIconControl.axaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:iconPacks="urn:iconpacks-avalonia"
xmlns:iconPacks="https://github.com/MahApps/IconPacks.Avalonia"
x:ClassModifier="internal">

<Design.PreviewWith>
Expand Down
6 changes: 2 additions & 4 deletions src/IconPacks.Avalonia/PackIconControl.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using System;
using System.Windows;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Metadata;
using Avalonia.Media;
using IconPacks.Avalonia;
using IconPacks.Avalonia.BoxIcons;
using IconPacks.Avalonia.Core;

namespace IconPacks.Avalonia
{
Expand Down
2 changes: 2 additions & 0 deletions src/IconPacks.Avalonia/PackIconControlDataFactory.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System;
using System.Collections.Generic;
using IconPacks.Avalonia.BoxIcons;
using IconPacks.Avalonia.Core;

namespace IconPacks.Avalonia
{
Expand Down
2 changes: 2 additions & 0 deletions src/IconPacks.Avalonia/PackIconExtension.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System;
using Avalonia.Data;
using Avalonia.Markup.Xaml;
using IconPacks.Avalonia.BoxIcons;
using IconPacks.Avalonia.Core;

namespace IconPacks.Avalonia
{
Expand Down
2 changes: 2 additions & 0 deletions src/IconPacks.Avalonia/PackIconImageExtension.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System;
using Avalonia.Markup.Xaml;
using Avalonia.Media;
using IconPacks.Avalonia.BoxIcons;
using IconPacks.Avalonia.Core;

namespace IconPacks.Avalonia
{
Expand Down
8 changes: 4 additions & 4 deletions src/IconPacks.Avalonia/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Avalonia.Metadata;

[assembly: XmlnsPrefix("urn:iconpacks-avalonia", "iconPacks")]
[assembly: XmlnsDefinition("urn:iconpacks-avalonia", "IconPacks")]
[assembly: XmlnsDefinition("urn:iconpacks-avalonia", "IconPacks.Avalonia")]
[assembly: XmlnsDefinition("urn:iconpacks-avalonia", "IconPacks.Avalonia.Converter")]
[assembly: XmlnsPrefix("https://github.com/MahApps/IconPacks.Avalonia", "iconPacks")]
[assembly: XmlnsDefinition("https://github.com/MahApps/IconPacks.Avalonia", "IconPacks")]
[assembly: XmlnsDefinition("https://github.com/MahApps/IconPacks.Avalonia", "IconPacks.Avalonia")]
[assembly: XmlnsDefinition("https://github.com/MahApps/IconPacks.Avalonia", "IconPacks.Avalonia.Converter")]

0 comments on commit 84c514a

Please sign in to comment.