Browse Source

clear code

marinofaggiana 4 years ago
parent
commit
3e88277070
2 changed files with 2 additions and 2 deletions
  1. 1 1
      iOSClient/Settings/CCManageAccount.m
  2. 1 1
      iOSClient/Utility/NCUtility.swift

+ 1 - 1
iOSClient/Settings/CCManageAccount.m

@@ -60,7 +60,7 @@
         if (avatar) {
             
             avatar = [CCGraphics scaleImage:avatar toSize:CGSizeMake(35, 35) isAspectRation:YES];
-            NCAvatar *avatarImageView = [[NCAvatar alloc] initWithImage:avatar borderColor:[UIColor lightGrayColor] borderWidth:0.5];
+            NCAvatar *avatarImageView = [[NCAvatar alloc] initWithImage:avatar borderColor:[UIColor whiteColor] borderWidth:1];
                         
             CGSize imageSize = avatarImageView.bounds.size;
             UIGraphicsBeginImageContextWithOptions(imageSize, NO, UIScreen.mainScreen.scale);

+ 1 - 1
iOSClient/Utility/NCUtility.swift

@@ -448,7 +448,7 @@ class NCUtility: NSObject {
         UIGraphicsEndImageContext()
 
         UIGraphicsBeginImageContextWithOptions(CGSize(width: size, height: size), false, UIScreen.main.scale)
-        let avatarImageView = NCAvatar.init(image: image, borderColor: .lightGray, borderWidth: UIScreen.main.scale)
+        let avatarImageView = NCAvatar.init(image: image, borderColor: .lightGray, borderWidth: 1)
         guard let context = UIGraphicsGetCurrentContext() else { return nil }
         avatarImageView.layer.render(in: context)
         guard let imageAvatar = UIGraphicsGetImageFromCurrentImageContext() else { return nil }