Skip to content

Commit

Permalink
added attributes for colors
Browse files Browse the repository at this point in the history
  • Loading branch information
dei79 committed Apr 5, 2023
1 parent b2865e8 commit 13f957f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
13 changes: 12 additions & 1 deletion CoreHelpers.Branding.Runtime.Abstractions/ICompanyBranding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,24 @@ public enum nLegalItems
dataPrivacy
}

public interface ICompanyBrandingColors
{
string Font { get; }
string FontHover { get; }
string FontActive { get; }
string Primary { get; }
string PrimaryHover { get; }
}

public interface ICompanyBranding
{
string Name { get; }

Dictionary<nLogoSize, string> Logos { get; }

Dictionary<nLegalItems, string> Legals { get; }
}

ICompanyBrandingColors Colors { get; }
}
}

18 changes: 16 additions & 2 deletions CoreHelpers.Branding.Runtime/Models/MutableCompanyBranding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,33 @@

namespace CoreHelpers.Branding.Runtime.Models
{
public class MutableCompanyBranding : ICompanyBranding
public class MutableCompanyBrandingColors : ICompanyBrandingColors
{
public string Font { get; }

public string FontHover { get; }

public string FontActive { get; }

public string Primary { get; }

public string PrimaryHover { get; }
}

public class MutableCompanyBranding : ICompanyBranding
{
public string Name { get; }

public Dictionary<nLogoSize, string> Logos { get; } = new Dictionary<nLogoSize, string>();

public Dictionary<nLegalItems, string> Legals { get; } = new Dictionary<nLegalItems, string>();

public ICompanyBrandingColors Colors { get; } = new MutableCompanyBrandingColors();

public MutableCompanyBranding(string name)
{
this.Name = name;
}

}
}

Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,28 @@

namespace CoreHelpers.Branding.Stores.AzureStorage
{
public class AzureStorageCompanyBranding : ICompanyBranding
public class AzureStorageCompanyBrandingColors : ICompanyBrandingColors
{
public string Font { get; }

public string FontHover { get; }

public string FontActive { get; }

public string Primary { get; }

public string PrimaryHover { get; }
}

public class AzureStorageCompanyBranding : ICompanyBranding
{
public string Name { get; set; }

public Dictionary<nLogoSize, string> Logos { get; set; } = new Dictionary<nLogoSize, string>();

public Dictionary<nLegalItems, string> Legals { get; set; } = new Dictionary<nLegalItems, string>();

public ICompanyBrandingColors Colors { get; set; } = new AzureStorageCompanyBrandingColors();
}
}

0 comments on commit 13f957f

Please sign in to comment.