diff --git a/CoreHelpers.Branding.Runtime.Abstractions/ICompanyBranding.cs b/CoreHelpers.Branding.Runtime.Abstractions/ICompanyBranding.cs index 04ae24c..93ef46d 100644 --- a/CoreHelpers.Branding.Runtime.Abstractions/ICompanyBranding.cs +++ b/CoreHelpers.Branding.Runtime.Abstractions/ICompanyBranding.cs @@ -15,6 +15,15 @@ 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; } @@ -22,6 +31,8 @@ public interface ICompanyBranding Dictionary Logos { get; } Dictionary Legals { get; } - } + + ICompanyBrandingColors Colors { get; } + } } diff --git a/CoreHelpers.Branding.Runtime/Models/MutableCompanyBranding.cs b/CoreHelpers.Branding.Runtime/Models/MutableCompanyBranding.cs index 97fb488..4633975 100644 --- a/CoreHelpers.Branding.Runtime/Models/MutableCompanyBranding.cs +++ b/CoreHelpers.Branding.Runtime/Models/MutableCompanyBranding.cs @@ -3,7 +3,20 @@ 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; } @@ -11,11 +24,12 @@ public class MutableCompanyBranding : ICompanyBranding public Dictionary Legals { get; } = new Dictionary(); + public ICompanyBrandingColors Colors { get; } = new MutableCompanyBrandingColors(); + public MutableCompanyBranding(string name) { this.Name = name; } - } } diff --git a/CoreHelpers.Branding.Stores.AzureStorage/AzureStorageCompanyBranding.cs b/CoreHelpers.Branding.Stores.AzureStorage/AzureStorageCompanyBranding.cs index 990fb59..77f80c4 100644 --- a/CoreHelpers.Branding.Stores.AzureStorage/AzureStorageCompanyBranding.cs +++ b/CoreHelpers.Branding.Stores.AzureStorage/AzureStorageCompanyBranding.cs @@ -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 Logos { get; set; } = new Dictionary(); public Dictionary Legals { get; set; } = new Dictionary(); + + public ICompanyBrandingColors Colors { get; set; } = new AzureStorageCompanyBrandingColors(); } }