diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2020-05-14 18:39:43 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2020-05-14 18:39:43 +0300 |
commit | b82acebb0316b660ad20d308706cec7ec44e5120 (patch) | |
tree | e30e39b2dc5931a310132093ef21e586b09ea4b7 /Share | |
parent | 8e0d97e809ae2fde65fb53358f439ce8723c7500 (diff) |
coding
Diffstat (limited to 'Share')
-rw-r--r-- | Share/ShareViewController.m | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Share/ShareViewController.m b/Share/ShareViewController.m index c475835a7..4d9965c11 100644 --- a/Share/ShareViewController.m +++ b/Share/ShareViewController.m @@ -176,8 +176,10 @@ { // Theming if ([NCBrandOptions sharedInstance].use_themingColor) { - tableCapabilities *capabilities = [[NCManageDatabase sharedInstance] getCapabilitesWithAccount:self.activeAccount]; - [CCGraphics settingThemingColor:capabilities.themingColor themingColorElement:capabilities.themingColorElement themingColorText:capabilities.themingColorText]; + 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:themingColor themingColorElement:themingColorElement themingColorText:themingColorText]; } self.navigationController.navigationBar.barTintColor = NCBrandColor.sharedInstance.brand; self.navigationController.navigationBar.tintColor = NCBrandColor.sharedInstance.brandText; |