VectorDesignValues: Load Vector colors at the app load time for the life of the app

This commit is contained in:
manuroe
2016-02-05 15:21:00 +01:00
parent 314f9547d1
commit 485f79b51e
29 changed files with 132 additions and 93 deletions
@@ -121,7 +121,7 @@
// Setup `MXKRoomMemberListViewController` properties
self.rageShakeManager = [RageShakeManager sharedManager];
self.tableView.backgroundColor = VECTOR_LIGHT_GRAY_COLOR;
self.tableView.backgroundColor = kVectorColorLightGrey;
// Add observer to handle removed accounts
removedAccountObserver = [[NSNotificationCenter defaultCenter] addObserverForName:kMXKAccountManagerDidRemoveAccountNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) {
@@ -421,7 +421,7 @@
[signOutCell.mxkButton setTitle:title forState:UIControlStateNormal];
[signOutCell.mxkButton setTitle:title forState:UIControlStateHighlighted];
[signOutCell.mxkButton setTintColor:VECTOR_GREEN_COLOR];
[signOutCell.mxkButton setTintColor:kVectorColorGreen];
signOutCell.mxkButton.titleLabel.font = [UIFont boldSystemFontOfSize:16];
[signOutCell.mxkButton removeTarget:self action:nil forControlEvents:UIControlEventTouchUpInside];
@@ -535,7 +535,7 @@
else if (row == USER_SETTINGS_NIGHT_MODE_SEP_INDEX)
{
UITableViewCell *sepCell = [[UITableViewCell alloc] init];
sepCell.backgroundColor = VECTOR_LIGHT_GRAY_COLOR;
sepCell.backgroundColor = kVectorColorLightGrey;
cell = sepCell;
}
@@ -713,7 +713,7 @@
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
{
UIView *sectionHeader = [[UIView alloc] initWithFrame:[tableView rectForHeaderInSection:section]];
sectionHeader.backgroundColor = VECTOR_LIGHT_GRAY_COLOR;
sectionHeader.backgroundColor = kVectorColorLightGrey;
if (section == SETTINGS_SECTION_SIGN_OUT_INDEX)
{