Reskin: Use current style color constants for section headers

This commit is contained in:
manuroe
2018-11-30 15:27:13 +01:00
parent 21745aa5ba
commit d6d64ff43d
3 changed files with 10 additions and 8 deletions
@@ -415,10 +415,10 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
NSString *roomCount = [NSString stringWithFormat:@" %tu", count];
NSMutableAttributedString *mutableSectionTitle = [[NSMutableAttributedString alloc] initWithString:title
attributes:@{NSForegroundColorAttributeName : kRiotPrimaryTextColor,
attributes:@{NSForegroundColorAttributeName : RiotDesignValues.colorValues.headerTextPrimary,
NSFontAttributeName: [UIFont boldSystemFontOfSize:15.0]}];
[mutableSectionTitle appendAttributedString:[[NSMutableAttributedString alloc] initWithString:roomCount
attributes:@{NSForegroundColorAttributeName : kRiotAuxiliaryColor,
attributes:@{NSForegroundColorAttributeName : RiotDesignValues.colorValues.headerTextSecondary,
NSFontAttributeName: [UIFont boldSystemFontOfSize:15.0]}]];
sectionTitle = mutableSectionTitle;
@@ -426,7 +426,7 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
else if (title)
{
sectionTitle = [[NSAttributedString alloc] initWithString:title
attributes:@{NSForegroundColorAttributeName : kRiotPrimaryTextColor,
attributes:@{NSForegroundColorAttributeName : RiotDesignValues.colorValues.headerTextPrimary,
NSFontAttributeName: [UIFont boldSystemFontOfSize:15.0]}];
}