Skip to content

Commit 13f957f

Browse files
committed
added attributes for colors
1 parent b2865e8 commit 13f957f

File tree

3 files changed

+44
-4
lines changed

3 files changed

+44
-4
lines changed

CoreHelpers.Branding.Runtime.Abstractions/ICompanyBranding.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,24 @@ public enum nLegalItems
1515
dataPrivacy
1616
}
1717

18+
public interface ICompanyBrandingColors
19+
{
20+
string Font { get; }
21+
string FontHover { get; }
22+
string FontActive { get; }
23+
string Primary { get; }
24+
string PrimaryHover { get; }
25+
}
26+
1827
public interface ICompanyBranding
1928
{
2029
string Name { get; }
2130

2231
Dictionary<nLogoSize, string> Logos { get; }
2332

2433
Dictionary<nLegalItems, string> Legals { get; }
25-
}
34+
35+
ICompanyBrandingColors Colors { get; }
36+
}
2637
}
2738

CoreHelpers.Branding.Runtime/Models/MutableCompanyBranding.cs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,33 @@
33

44
namespace CoreHelpers.Branding.Runtime.Models
55
{
6-
public class MutableCompanyBranding : ICompanyBranding
6+
public class MutableCompanyBrandingColors : ICompanyBrandingColors
7+
{
8+
public string Font { get; }
9+
10+
public string FontHover { get; }
11+
12+
public string FontActive { get; }
13+
14+
public string Primary { get; }
15+
16+
public string PrimaryHover { get; }
17+
}
18+
19+
public class MutableCompanyBranding : ICompanyBranding
720
{
821
public string Name { get; }
922

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

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

27+
public ICompanyBrandingColors Colors { get; } = new MutableCompanyBrandingColors();
28+
1429
public MutableCompanyBranding(string name)
1530
{
1631
this.Name = name;
1732
}
18-
1933
}
2034
}
2135

CoreHelpers.Branding.Stores.AzureStorage/AzureStorageCompanyBranding.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,28 @@
44

55
namespace CoreHelpers.Branding.Stores.AzureStorage
66
{
7-
public class AzureStorageCompanyBranding : ICompanyBranding
7+
public class AzureStorageCompanyBrandingColors : ICompanyBrandingColors
8+
{
9+
public string Font { get; }
10+
11+
public string FontHover { get; }
12+
13+
public string FontActive { get; }
14+
15+
public string Primary { get; }
16+
17+
public string PrimaryHover { get; }
18+
}
19+
20+
public class AzureStorageCompanyBranding : ICompanyBranding
821
{
922
public string Name { get; set; }
1023

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

1326
public Dictionary<nLegalItems, string> Legals { get; set; } = new Dictionary<nLegalItems, string>();
27+
28+
public ICompanyBrandingColors Colors { get; set; } = new AzureStorageCompanyBrandingColors();
1429
}
1530
}
1631

0 commit comments

Comments
 (0)