Browse Source

control color too white FFFFF*

Marino Faggiana 8 years ago
parent
commit
59ec4a20e9
1 changed files with 5 additions and 2 deletions
  1. 5 2
      iOSClient/AppDelegate.m

+ 5 - 2
iOSClient/AppDelegate.m

@@ -985,9 +985,12 @@
     
     
         tableCapabilities *capabilities = [[NCManageDatabase sharedInstance] getCapabilitesForAccount:self.activeAccount];
         tableCapabilities *capabilities = [[NCManageDatabase sharedInstance] getCapabilitesForAccount:self.activeAccount];
     
     
-        if ([NCBrandOptions sharedInstance].use_themingColor && capabilities.themingColor.length > 0) {
+        if ([NCBrandOptions sharedInstance].use_themingColor && capabilities.themingColor.length == 7) {
         
         
-            [NCBrandColor sharedInstance].brand = [CCGraphics colorFromHexString:capabilities.themingColor];
+            if ([[capabilities.themingColor substringWithRange:NSMakeRange(0, 6)] isEqualToString:@"#FFFFF"])
+                [NCBrandColor sharedInstance].brand = [NCBrandColor sharedInstance].customer;
+            else
+                [NCBrandColor sharedInstance].brand = [CCGraphics colorFromHexString:capabilities.themingColor];
             
             
         } else {
         } else {