瀏覽代碼

Theming Nextcloud 13

Marino Faggiana 7 年之前
父節點
當前提交
3d1b6986c1
共有 2 個文件被更改,包括 10 次插入1 次删除
  1. 1 0
      iOSClient/Main/CCMain.m
  2. 9 1
      iOSClient/Move/CCMove.m

+ 1 - 0
iOSClient/Main/CCMain.m

@@ -318,6 +318,7 @@
         [appDelegate changeTheming:self];
     
     // Refresh control
+    _refreshControl.tintColor = [NCBrandColor sharedInstance].brandElement;
     _refreshControl.backgroundColor = [NCBrandColor sharedInstance].brand;
 
     // color searchbar

+ 9 - 1
iOSClient/Move/CCMove.m

@@ -75,8 +75,16 @@
 
     if (![_serverUrl length]) {
         
+        UIImageView *image;
+        
         _serverUrl = [CCUtility getHomeServerUrlActiveUrl:activeUrl];
-        UIImageView *image = [[UIImageView alloc] initWithImage:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"navigationLogo"] color:[NCBrandColor sharedInstance].brandText]];
+        
+        tableCapabilities *capabilities = [[NCManageDatabase sharedInstance] getCapabilites];
+        if ([capabilities.themingColor isEqualToString:@"#FFFFFF"])
+            image = [[UIImageView alloc] initWithImage:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"navigationLogo"] color:[UIColor blackColor]]];
+        else
+            image = [[UIImageView alloc] initWithImage:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"navigationLogo"] color:[UIColor whiteColor]]];
+
         [self.navigationController.navigationBar.topItem setTitleView:image];
         self.title = @"Home";