room_member_search

Updates after MatrixKit update and review
This commit is contained in:
yannick
2015-12-22 08:43:55 +01:00
parent 5941f2bb0f
commit badbc956a3
6 changed files with 10 additions and 94 deletions
@@ -297,7 +297,7 @@
}];
muteAction.backgroundColor = [VectorDesignValues getBackgroundColor:isMuted ? @"unmute_icon" : @"mute_icon"];
muteAction.backgroundColor = [MXKTools convertImageToPatternColor:isMuted ? @"unmute_icon" : @"mute_icon" backgroundColor:VECTOR_LIGHT_GRAY_COLOR patternSize:CGSizeMake(74, 74) resourceSize:CGSizeMake(30, 30)];
[actions insertObject:muteAction atIndex:0];
// favorites management
@@ -326,7 +326,7 @@
[self updateRoomTagAtIndexPath:indexPath to:kMXRoomTagFavourite];
}];
action.backgroundColor = [VectorDesignValues getBackgroundColor:@"favorite_icon"];
action.backgroundColor = [MXKTools convertImageToPatternColor:@"favorite_icon" backgroundColor:VECTOR_LIGHT_GRAY_COLOR patternSize:CGSizeMake(74, 74) resourceSize:CGSizeMake(30, 30)];
[actions insertObject:action atIndex:0];
}
@@ -337,7 +337,7 @@
[self updateRoomTagAtIndexPath:indexPath to:nil];
}];
action.backgroundColor = [VectorDesignValues getBackgroundColor:nil];
action.backgroundColor = [MXKTools convertImageToPatternColor:nil backgroundColor:VECTOR_LIGHT_GRAY_COLOR patternSize:CGSizeMake(74, 74) resourceSize:CGSizeMake(30, 30)];
[actions insertObject:action atIndex:0];
}
@@ -348,14 +348,15 @@
[self updateRoomTagAtIndexPath:indexPath to:kMXRoomTagLowPriority];
}];
action.backgroundColor = [VectorDesignValues getBackgroundColor:@"low_priority_icon"];
action.backgroundColor = [MXKTools convertImageToPatternColor:@"low_priority_icon" backgroundColor:VECTOR_LIGHT_GRAY_COLOR patternSize:CGSizeMake(74, 74) resourceSize:CGSizeMake(30, 30)];
[actions insertObject:action atIndex:0];
}
UITableViewRowAction *leaveAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDestructive title:title handler:^(UITableViewRowAction *action, NSIndexPath *indexPath){
[self leaveRecentsAtIndexPath:indexPath];
}];
leaveAction.backgroundColor = [VectorDesignValues getBackgroundColor:@"remove_icon"];
leaveAction.backgroundColor = [MXKTools convertImageToPatternColor:@"remove_icon" backgroundColor:VECTOR_LIGHT_GRAY_COLOR patternSize:CGSizeMake(74, 74) resourceSize:CGSizeMake(30, 30)];
[actions insertObject:leaveAction atIndex:0];
}