marinofaggiana před 4 roky
rodič
revize
bb78d65dd2
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 4 2
      iOSClient/AppDelegate.m

+ 4 - 2
iOSClient/AppDelegate.m

@@ -994,9 +994,11 @@
     
     if ([NCBrandOptions sharedInstance].use_themingColor) {
         
-        tableCapabilities *capabilities = [[NCManageDatabase sharedInstance] getCapabilitesWithAccount:self.activeAccount];
+        NSString *themingColor = [[NCManageDatabase sharedInstance] getCapabilitiesServerThemingWithAccount:self.activeAccount element:@"color"];
+        NSString *themingColorElement = [[NCManageDatabase sharedInstance] getCapabilitiesServerThemingWithAccount:self.activeAccount element:@"color-element"];
+        NSString *themingColorText = [[NCManageDatabase sharedInstance] getCapabilitiesServerThemingWithAccount:self.activeAccount element:@"color-text"];
 
-        [CCGraphics settingThemingColor:capabilities.themingColor themingColorElement:capabilities.themingColorElement themingColorText:capabilities.themingColorText];
+        [CCGraphics settingThemingColor:themingColor themingColorElement:themingColorElement themingColorText:themingColorText];
         
         UIColor *color = NCBrandColor.sharedInstance.brand;
         BOOL isTooLight = NCBrandColor.sharedInstance.brand.isTooLight;