Marino Faggiana 8 жил өмнө
parent
commit
b93b77caaa

+ 1 - 0
Share Ext/ShareViewController.h

@@ -38,6 +38,7 @@
 #import "CCHud.h"
 
 #import "TableAccount+CoreDataClass.h"
+#import "TableCapabilities+CoreDataClass.h"
 
 @interface ShareViewController : UIViewController <UITableViewDelegate, OCNetworkingDelegate, MBProgressHUDDelegate, BKPasscodeViewControllerDelegate, CCNetworkingDelegate, CCMoveDelegate>
 

+ 6 - 1
Share Ext/ShareViewController.m

@@ -171,7 +171,12 @@
 - (void)navigationBarToolBar
 {    
     UIBarButtonItem *rightButtonUpload, *rightButtonEncrypt, *leftButtonCancel;
-    
+
+    // Theming
+    TableCapabilities *tableCapabilities = [CCCoreData getCapabilitesForAccount:self.activeAccount];
+    if (k_option_use_themingColor && tableCapabilities.themingColor.length > 0)
+        [NCBrandColor sharedInstance].brand = [CCGraphics colorFromHexString:tableCapabilities.themingColor];
+
     self.navigationController.navigationBar.barTintColor = [NCBrandColor sharedInstance].brand;
     self.navigationController.navigationBar.tintColor = [NCBrandColor sharedInstance].navigationBarText;