mirror of
https://github.com/viq/NewsBlur.git
synced 2025-11-01 09:09:16 +00:00
#1740 (avatar and notification icons)
- Tweaked the position of the avatar icon.
This commit is contained in:
parent
b38788a78b
commit
a02a7b24fb
1 changed files with 3 additions and 1 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue