Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Share
diff options
context:
space:
mode:
authormarinofaggiana <marino@marinofaggiana.com>2020-05-14 18:39:43 +0300
committermarinofaggiana <marino@marinofaggiana.com>2020-05-14 18:39:43 +0300
commitb82acebb0316b660ad20d308706cec7ec44e5120 (patch)
treee30e39b2dc5931a310132093ef21e586b09ea4b7 /Share
parent8e0d97e809ae2fde65fb53358f439ce8723c7500 (diff)
coding
Diffstat (limited to 'Share')
-rw-r--r--Share/ShareViewController.m6
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;