Skip to content

Commit f1b6a00

Browse files
committed
added primary font color
1 parent 41e9861 commit f1b6a00

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

CoreHelpers.Branding.Runtime.Abstractions/IBrandingBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ public enum nColorType
99
fontHover,
1010
fontActive,
1111
primary,
12-
primaryHover
12+
primaryHover,
13+
primaryFont
1314
}
1415

1516
public interface IBrandingBuilder

CoreHelpers.Branding.Runtime.Abstractions/ICompanyBranding.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public interface ICompanyBrandingColors
2222
string FontActive { get; }
2323
string Primary { get; }
2424
string PrimaryHover { get; }
25+
string PrimaryFont { get; }
2526
}
2627

2728
public interface ICompanyBranding

CoreHelpers.Branding.Runtime/Services/BrandingBuilder.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ public class BrandingBuilderColorModel : ICompanyBrandingColors
1414
public string Primary { get; set; } = string.Empty;
1515

1616
public string PrimaryHover { get; set; } = string.Empty;
17+
18+
public string PrimaryFont { get; set; } = string.Empty;
1719
}
1820

1921
public class BrandingBuilderModel : ICompanyBranding
@@ -82,6 +84,9 @@ public IBrandingBuilder SetColor(nColorType colorType, string colorValue)
8284
case nColorType.primaryHover:
8385
colorModel.PrimaryHover = colorValue;
8486
break;
87+
case nColorType.primaryFont:
88+
colorModel.PrimaryFont = colorValue;
89+
break;
8590
default:
8691
throw new Exception("Unknonw color type");
8792
}

CoreHelpers.Branding.Stores.AzureStorage/AzureStorageCompanyBranding.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ public class AzureStorageCompanyBrandingColors : ICompanyBrandingColors
1515
public string Primary { get; }
1616

1717
public string PrimaryHover { get; }
18+
19+
public string PrimaryFont { get; }
1820
}
1921

2022
public class AzureStorageCompanyBranding : ICompanyBranding

0 commit comments

Comments
 (0)