|
@@ -562,6 +562,9 @@
|
|
|
if ([_serverUrl isEqualToString:[CCUtility getHomeServerUrlActiveUrl:appDelegate.activeUrl]]) {
|
|
|
|
|
|
UIImage *imageThemingLogo = [UIImage imageNamed:@"themingLogo"];
|
|
|
+ _imageTitleHome = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
|
|
|
+
|
|
|
+
|
|
|
NSInteger multiplier = 2;
|
|
|
|
|
|
NSString *fileNameThemingLogo = [NSString stringWithFormat:@"%@/%@-themingLogo.png", [CCUtility getDirectoryUserData], [CCUtility getStringUser:appDelegate.activeUser activeUrl:appDelegate.activeUrl]];
|
|
@@ -577,24 +580,24 @@
|
|
|
|
|
|
if ([appDelegate.reachability isReachable] == NO) {
|
|
|
|
|
|
- _imageTitleHome = [[UIImageView alloc] initWithImage:[CCGraphics changeThemingColorImage:imageThemingLogo multiplier:multiplier color:[NCBrandColor sharedInstance].icon]];
|
|
|
+ _imageTitleHome.image = [CCGraphics changeThemingColorImage:imageThemingLogo multiplier:multiplier color:[NCBrandColor sharedInstance].icon];
|
|
|
|
|
|
} else {
|
|
|
|
|
|
tableCapabilities *capabilities = [[NCManageDatabase sharedInstance] getCapabilites];
|
|
|
|
|
|
if ([capabilities.themingColor isEqualToString:@"#FFFFFF"])
|
|
|
- _imageTitleHome = [[UIImageView alloc] initWithImage:[CCGraphics changeThemingColorImage:imageThemingLogo multiplier:multiplier color:[UIColor blackColor]]];
|
|
|
+ _imageTitleHome.image = [CCGraphics changeThemingColorImage:imageThemingLogo multiplier:multiplier color:[UIColor blackColor]];
|
|
|
else
|
|
|
- _imageTitleHome = [[UIImageView alloc] initWithImage:[CCGraphics changeThemingColorImage:imageThemingLogo multiplier:multiplier color:[UIColor whiteColor]]];
|
|
|
+ _imageTitleHome.image = [CCGraphics changeThemingColorImage:imageThemingLogo multiplier:multiplier color:[UIColor whiteColor]];
|
|
|
}
|
|
|
|
|
|
} else {
|
|
|
|
|
|
if ([appDelegate.reachability isReachable] == NO)
|
|
|
- _imageTitleHome = [[UIImageView alloc] initWithImage:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"themingLogo"] multiplier:2 color:[NCBrandColor sharedInstance].icon]];
|
|
|
+ _imageTitleHome.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"themingLogo"] multiplier:2 color:[NCBrandColor sharedInstance].icon];
|
|
|
else
|
|
|
- _imageTitleHome = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"themingLogo"]];
|
|
|
+ _imageTitleHome.image = [UIImage imageNamed:@"themingLogo"];
|
|
|
}
|
|
|
|
|
|
|