#1740 (avatar and notification icons)

- Tweaked the position of the avatar icon.
This commit is contained in:
David Sinclair 2022-10-20 11:24:15 -06:00
parent b38788a78b
commit a02a7b24fb

View file

@ -2765,6 +2765,8 @@ heightForHeaderInSection:(NSInteger)section {
userAvatarButton.pointerInteractionEnabled = YES;
userAvatarButton.accessibilityLabel = @"User info";
userAvatarButton.accessibilityHint = @"Double-tap for information about your account.";
UIEdgeInsets insets = UIEdgeInsetsMake(0, 0, 10, 0);
userAvatarButton.contentEdgeInsets = insets;
NSMutableURLRequest *avatarRequest = [NSMutableURLRequest requestWithURL:imageURL];
[avatarRequest addValue:@"image/*" forHTTPHeaderField:@"Accept"];
@ -2773,7 +2775,7 @@ heightForHeaderInSection:(NSInteger)section {
typeof(self) __weak weakSelf = self;
[avatarImageView setImageWithURLRequest:avatarRequest placeholderImage:nil success:^(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image) {
typeof(weakSelf) __strong strongSelf = weakSelf;
image = [Utilities roundCorneredImage:image radius:6 convertToSize:CGSizeMake(40, 40)];
image = [Utilities roundCorneredImage:image radius:6 convertToSize:CGSizeMake(38, 38)];
image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
[(UIButton *)strongSelf.userAvatarButton setImage:image forState:UIControlStateNormal];