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

View File

@@ -18,6 +18,7 @@
#import "ContactTableViewCell.h"
#import "RiotDesignValues.h"
#import "Riot-Swift.h"
#define CONTACTSDATASOURCE_LOCALCONTACTS_BITWISE 0x01
#define CONTACTSDATASOURCE_USERDIRECTORY_BITWISE 0x02
@@ -741,10 +742,10 @@
NSString *roomCount = [NSString stringWithFormat:roomCountFormat, 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;
@@ -752,7 +753,7 @@
else if (title)
{
sectionTitle = [[NSAttributedString alloc] initWithString:title
attributes:@{NSForegroundColorAttributeName : kRiotPrimaryTextColor,
attributes:@{NSForegroundColorAttributeName : RiotDesignValues.colorValues.headerTextPrimary,
NSFontAttributeName: [UIFont boldSystemFontOfSize:15.0]}];
}