marinofaggiana 4 年之前
父節點
當前提交
bb78d65dd2
共有 1 個文件被更改,包括 4 次插入2 次删除
  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;