浏览代码

Change color (brand) mode

Marino Faggiana 7 年之前
父节点
当前提交
17391f57a2
共有 100 个文件被更改,包括 14 次插入6 次删除
  1. 1 1
      iOSClient/Login/CCLogin.m
  2. 13 5
      iOSClient/Main/CCMain.m
  3. 二进制
      iOSClient/Supporting Files/cs-CZ.lproj/BKPasscodeView.strings
  4. 二进制
      iOSClient/Supporting Files/cs-CZ.lproj/CTAssetsPicker.strings
  5. 二进制
      iOSClient/Supporting Files/cs-CZ.lproj/Error.strings
  6. 二进制
      iOSClient/Supporting Files/cs-CZ.lproj/InfoPlist.strings
  7. 二进制
      iOSClient/Supporting Files/cs-CZ.lproj/Intro.strings
  8. 二进制
      iOSClient/Supporting Files/cs-CZ.lproj/Localizable.strings
  9. 二进制
      iOSClient/Supporting Files/cs-CZ.lproj/SwiftWebVC.strings
  10. 二进制
      iOSClient/Supporting Files/es-419.lproj/BKPasscodeView.strings
  11. 二进制
      iOSClient/Supporting Files/es-419.lproj/CTAssetsPicker.strings
  12. 二进制
      iOSClient/Supporting Files/es-419.lproj/Error.strings
  13. 二进制
      iOSClient/Supporting Files/es-419.lproj/InfoPlist.strings
  14. 二进制
      iOSClient/Supporting Files/es-419.lproj/Intro.strings
  15. 二进制
      iOSClient/Supporting Files/es-419.lproj/Localizable.strings
  16. 二进制
      iOSClient/Supporting Files/es-419.lproj/SwiftWebVC.strings
  17. 二进制
      iOSClient/Supporting Files/es-CL.lproj/BKPasscodeView.strings
  18. 二进制
      iOSClient/Supporting Files/es-CL.lproj/CTAssetsPicker.strings
  19. 二进制
      iOSClient/Supporting Files/es-CL.lproj/Error.strings
  20. 二进制
      iOSClient/Supporting Files/es-CL.lproj/InfoPlist.strings
  21. 二进制
      iOSClient/Supporting Files/es-CL.lproj/Intro.strings
  22. 二进制
      iOSClient/Supporting Files/es-CL.lproj/Localizable.strings
  23. 二进制
      iOSClient/Supporting Files/es-CL.lproj/SwiftWebVC.strings
  24. 二进制
      iOSClient/Supporting Files/es-CO.lproj/BKPasscodeView.strings
  25. 二进制
      iOSClient/Supporting Files/es-CO.lproj/CTAssetsPicker.strings
  26. 二进制
      iOSClient/Supporting Files/es-CO.lproj/Error.strings
  27. 二进制
      iOSClient/Supporting Files/es-CO.lproj/InfoPlist.strings
  28. 二进制
      iOSClient/Supporting Files/es-CO.lproj/Intro.strings
  29. 二进制
      iOSClient/Supporting Files/es-CO.lproj/Localizable.strings
  30. 二进制
      iOSClient/Supporting Files/es-CO.lproj/SwiftWebVC.strings
  31. 二进制
      iOSClient/Supporting Files/es-CR.lproj/BKPasscodeView.strings
  32. 二进制
      iOSClient/Supporting Files/es-CR.lproj/CTAssetsPicker.strings
  33. 二进制
      iOSClient/Supporting Files/es-CR.lproj/Error.strings
  34. 二进制
      iOSClient/Supporting Files/es-CR.lproj/InfoPlist.strings
  35. 二进制
      iOSClient/Supporting Files/es-CR.lproj/Intro.strings
  36. 二进制
      iOSClient/Supporting Files/es-CR.lproj/Localizable.strings
  37. 二进制
      iOSClient/Supporting Files/es-CR.lproj/SwiftWebVC.strings
  38. 二进制
      iOSClient/Supporting Files/es-DO.lproj/BKPasscodeView.strings
  39. 二进制
      iOSClient/Supporting Files/es-DO.lproj/CTAssetsPicker.strings
  40. 二进制
      iOSClient/Supporting Files/es-DO.lproj/Error.strings
  41. 二进制
      iOSClient/Supporting Files/es-DO.lproj/InfoPlist.strings
  42. 二进制
      iOSClient/Supporting Files/es-DO.lproj/Intro.strings
  43. 二进制
      iOSClient/Supporting Files/es-DO.lproj/Localizable.strings
  44. 二进制
      iOSClient/Supporting Files/es-DO.lproj/SwiftWebVC.strings
  45. 二进制
      iOSClient/Supporting Files/es-EC.lproj/BKPasscodeView.strings
  46. 二进制
      iOSClient/Supporting Files/es-EC.lproj/CTAssetsPicker.strings
  47. 二进制
      iOSClient/Supporting Files/es-EC.lproj/Error.strings
  48. 二进制
      iOSClient/Supporting Files/es-EC.lproj/InfoPlist.strings
  49. 二进制
      iOSClient/Supporting Files/es-EC.lproj/Intro.strings
  50. 二进制
      iOSClient/Supporting Files/es-EC.lproj/Localizable.strings
  51. 二进制
      iOSClient/Supporting Files/es-EC.lproj/SwiftWebVC.strings
  52. 二进制
      iOSClient/Supporting Files/es-GT.lproj/BKPasscodeView.strings
  53. 二进制
      iOSClient/Supporting Files/es-GT.lproj/CTAssetsPicker.strings
  54. 二进制
      iOSClient/Supporting Files/es-GT.lproj/Error.strings
  55. 二进制
      iOSClient/Supporting Files/es-GT.lproj/InfoPlist.strings
  56. 二进制
      iOSClient/Supporting Files/es-GT.lproj/Intro.strings
  57. 二进制
      iOSClient/Supporting Files/es-GT.lproj/Localizable.strings
  58. 二进制
      iOSClient/Supporting Files/es-GT.lproj/SwiftWebVC.strings
  59. 二进制
      iOSClient/Supporting Files/es-HN.lproj/BKPasscodeView.strings
  60. 二进制
      iOSClient/Supporting Files/es-HN.lproj/CTAssetsPicker.strings
  61. 二进制
      iOSClient/Supporting Files/es-HN.lproj/Error.strings
  62. 二进制
      iOSClient/Supporting Files/es-HN.lproj/InfoPlist.strings
  63. 二进制
      iOSClient/Supporting Files/es-HN.lproj/Intro.strings
  64. 二进制
      iOSClient/Supporting Files/es-HN.lproj/Localizable.strings
  65. 二进制
      iOSClient/Supporting Files/es-HN.lproj/SwiftWebVC.strings
  66. 二进制
      iOSClient/Supporting Files/es-MX.lproj/BKPasscodeView.strings
  67. 二进制
      iOSClient/Supporting Files/es-MX.lproj/CTAssetsPicker.strings
  68. 二进制
      iOSClient/Supporting Files/es-MX.lproj/Error.strings
  69. 二进制
      iOSClient/Supporting Files/es-MX.lproj/InfoPlist.strings
  70. 二进制
      iOSClient/Supporting Files/es-MX.lproj/Intro.strings
  71. 二进制
      iOSClient/Supporting Files/es-MX.lproj/Localizable.strings
  72. 二进制
      iOSClient/Supporting Files/es-MX.lproj/SwiftWebVC.strings
  73. 二进制
      iOSClient/Supporting Files/es-NI.lproj/BKPasscodeView.strings
  74. 二进制
      iOSClient/Supporting Files/es-NI.lproj/CTAssetsPicker.strings
  75. 二进制
      iOSClient/Supporting Files/es-NI.lproj/Error.strings
  76. 二进制
      iOSClient/Supporting Files/es-NI.lproj/InfoPlist.strings
  77. 二进制
      iOSClient/Supporting Files/es-NI.lproj/Intro.strings
  78. 二进制
      iOSClient/Supporting Files/es-NI.lproj/Localizable.strings
  79. 二进制
      iOSClient/Supporting Files/es-NI.lproj/SwiftWebVC.strings
  80. 二进制
      iOSClient/Supporting Files/es-PA.lproj/BKPasscodeView.strings
  81. 二进制
      iOSClient/Supporting Files/es-PA.lproj/CTAssetsPicker.strings
  82. 二进制
      iOSClient/Supporting Files/es-PA.lproj/Error.strings
  83. 二进制
      iOSClient/Supporting Files/es-PA.lproj/InfoPlist.strings
  84. 二进制
      iOSClient/Supporting Files/es-PA.lproj/Intro.strings
  85. 二进制
      iOSClient/Supporting Files/es-PA.lproj/Localizable.strings
  86. 二进制
      iOSClient/Supporting Files/es-PA.lproj/SwiftWebVC.strings
  87. 二进制
      iOSClient/Supporting Files/es-PE.lproj/BKPasscodeView.strings
  88. 二进制
      iOSClient/Supporting Files/es-PE.lproj/CTAssetsPicker.strings
  89. 二进制
      iOSClient/Supporting Files/es-PE.lproj/Error.strings
  90. 二进制
      iOSClient/Supporting Files/es-PE.lproj/InfoPlist.strings
  91. 二进制
      iOSClient/Supporting Files/es-PE.lproj/Intro.strings
  92. 二进制
      iOSClient/Supporting Files/es-PE.lproj/Localizable.strings
  93. 二进制
      iOSClient/Supporting Files/es-PE.lproj/SwiftWebVC.strings
  94. 二进制
      iOSClient/Supporting Files/es-PR.lproj/BKPasscodeView.strings
  95. 二进制
      iOSClient/Supporting Files/es-PR.lproj/CTAssetsPicker.strings
  96. 二进制
      iOSClient/Supporting Files/es-PR.lproj/Error.strings
  97. 二进制
      iOSClient/Supporting Files/es-PR.lproj/InfoPlist.strings
  98. 二进制
      iOSClient/Supporting Files/es-PR.lproj/Intro.strings
  99. 二进制
      iOSClient/Supporting Files/es-PR.lproj/Localizable.strings
  100. 二进制
      iOSClient/Supporting Files/es-PR.lproj/SwiftWebVC.strings

+ 1 - 1
iOSClient/Login/CCLogin.m

@@ -61,7 +61,7 @@
     self.annulla.tintColor = [NCBrandColor sharedInstance].customerText;
     
     // Base URL
-    _imageBaseUrl.image = [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"loginURL"] color:[NCBrandColor sharedInstance].customerText];
+    _imageBaseUrl.image = [UIImage imageNamed:@"loginURL"];
     _baseUrl.textColor = [NCBrandColor sharedInstance].customerText;
     _baseUrl.tintColor = [NCBrandColor sharedInstance].customerText;
     _baseUrl.placeholder = NSLocalizedString(@"_login_url_", nil);

+ 13 - 5
iOSClient/Main/CCMain.m

@@ -565,11 +565,19 @@
             if ([appDelegate.reachability isReachable] == NO) {
                 _ImageTitleHomeCryptoCloud = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"navigationLogoOffline"]];
             } else {
-                tableCapabilities *capabilities = [[NCManageDatabase sharedInstance] getCapabilites];
-                if ([capabilities.themingColor isEqualToString:@"#FFFFFF"])
-                    _ImageTitleHomeCryptoCloud = [[UIImageView alloc] initWithImage:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"navigationLogo"] color:[UIColor blackColor]]];
-                else
-                    _ImageTitleHomeCryptoCloud = [[UIImageView alloc] initWithImage:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"navigationLogo"] color:[UIColor whiteColor]]];
+                
+                if ([NCBrandOptions sharedInstance].use_themingColor) {
+                
+                    tableCapabilities *capabilities = [[NCManageDatabase sharedInstance] getCapabilites];
+                    
+                    if ([capabilities.themingColor isEqualToString:@"#FFFFFF"])
+                        _ImageTitleHomeCryptoCloud = [[UIImageView alloc] initWithImage:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"navigationLogo"] color:[UIColor blackColor]]];
+                    else
+                        _ImageTitleHomeCryptoCloud = [[UIImageView alloc] initWithImage:[CCGraphics changeThemingColorImage:[UIImage imageNamed:@"navigationLogo"] color:[UIColor whiteColor]]];
+                } else {
+                    
+                    _ImageTitleHomeCryptoCloud = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"navigationLogo"]];
+                }
             }
             
             [_ImageTitleHomeCryptoCloud setUserInteractionEnabled:YES];

二进制
iOSClient/Supporting Files/cs-CZ.lproj/BKPasscodeView.strings


二进制
iOSClient/Supporting Files/cs-CZ.lproj/CTAssetsPicker.strings


二进制
iOSClient/Supporting Files/cs-CZ.lproj/Error.strings


二进制
iOSClient/Supporting Files/cs-CZ.lproj/InfoPlist.strings


二进制
iOSClient/Supporting Files/cs-CZ.lproj/Intro.strings


二进制
iOSClient/Supporting Files/cs-CZ.lproj/Localizable.strings


二进制
iOSClient/Supporting Files/cs-CZ.lproj/SwiftWebVC.strings


二进制
iOSClient/Supporting Files/es-419.lproj/BKPasscodeView.strings


二进制
iOSClient/Supporting Files/es-419.lproj/CTAssetsPicker.strings


二进制
iOSClient/Supporting Files/es-419.lproj/Error.strings


二进制
iOSClient/Supporting Files/es-419.lproj/InfoPlist.strings


二进制
iOSClient/Supporting Files/es-419.lproj/Intro.strings


二进制
iOSClient/Supporting Files/es-419.lproj/Localizable.strings


二进制
iOSClient/Supporting Files/es-419.lproj/SwiftWebVC.strings


二进制
iOSClient/Supporting Files/es-CL.lproj/BKPasscodeView.strings


二进制
iOSClient/Supporting Files/es-CL.lproj/CTAssetsPicker.strings


二进制
iOSClient/Supporting Files/es-CL.lproj/Error.strings


二进制
iOSClient/Supporting Files/es-CL.lproj/InfoPlist.strings


二进制
iOSClient/Supporting Files/es-CL.lproj/Intro.strings


二进制
iOSClient/Supporting Files/es-CL.lproj/Localizable.strings


二进制
iOSClient/Supporting Files/es-CL.lproj/SwiftWebVC.strings


二进制
iOSClient/Supporting Files/es-CO.lproj/BKPasscodeView.strings


二进制
iOSClient/Supporting Files/es-CO.lproj/CTAssetsPicker.strings


二进制
iOSClient/Supporting Files/es-CO.lproj/Error.strings


二进制
iOSClient/Supporting Files/es-CO.lproj/InfoPlist.strings


二进制
iOSClient/Supporting Files/es-CO.lproj/Intro.strings


二进制
iOSClient/Supporting Files/es-CO.lproj/Localizable.strings


二进制
iOSClient/Supporting Files/es-CO.lproj/SwiftWebVC.strings


二进制
iOSClient/Supporting Files/es-CR.lproj/BKPasscodeView.strings


二进制
iOSClient/Supporting Files/es-CR.lproj/CTAssetsPicker.strings


二进制
iOSClient/Supporting Files/es-CR.lproj/Error.strings


二进制
iOSClient/Supporting Files/es-CR.lproj/InfoPlist.strings


二进制
iOSClient/Supporting Files/es-CR.lproj/Intro.strings


二进制
iOSClient/Supporting Files/es-CR.lproj/Localizable.strings


二进制
iOSClient/Supporting Files/es-CR.lproj/SwiftWebVC.strings


二进制
iOSClient/Supporting Files/es-DO.lproj/BKPasscodeView.strings


二进制
iOSClient/Supporting Files/es-DO.lproj/CTAssetsPicker.strings


二进制
iOSClient/Supporting Files/es-DO.lproj/Error.strings


二进制
iOSClient/Supporting Files/es-DO.lproj/InfoPlist.strings


二进制
iOSClient/Supporting Files/es-DO.lproj/Intro.strings


二进制
iOSClient/Supporting Files/es-DO.lproj/Localizable.strings


二进制
iOSClient/Supporting Files/es-DO.lproj/SwiftWebVC.strings


二进制
iOSClient/Supporting Files/es-EC.lproj/BKPasscodeView.strings


二进制
iOSClient/Supporting Files/es-EC.lproj/CTAssetsPicker.strings


二进制
iOSClient/Supporting Files/es-EC.lproj/Error.strings


二进制
iOSClient/Supporting Files/es-EC.lproj/InfoPlist.strings


二进制
iOSClient/Supporting Files/es-EC.lproj/Intro.strings


二进制
iOSClient/Supporting Files/es-EC.lproj/Localizable.strings


二进制
iOSClient/Supporting Files/es-EC.lproj/SwiftWebVC.strings


二进制
iOSClient/Supporting Files/es-GT.lproj/BKPasscodeView.strings


二进制
iOSClient/Supporting Files/es-GT.lproj/CTAssetsPicker.strings


二进制
iOSClient/Supporting Files/es-GT.lproj/Error.strings


二进制
iOSClient/Supporting Files/es-GT.lproj/InfoPlist.strings


二进制
iOSClient/Supporting Files/es-GT.lproj/Intro.strings


二进制
iOSClient/Supporting Files/es-GT.lproj/Localizable.strings


二进制
iOSClient/Supporting Files/es-GT.lproj/SwiftWebVC.strings


二进制
iOSClient/Supporting Files/es-HN.lproj/BKPasscodeView.strings


二进制
iOSClient/Supporting Files/es-HN.lproj/CTAssetsPicker.strings


二进制
iOSClient/Supporting Files/es-HN.lproj/Error.strings


二进制
iOSClient/Supporting Files/es-HN.lproj/InfoPlist.strings


二进制
iOSClient/Supporting Files/es-HN.lproj/Intro.strings


二进制
iOSClient/Supporting Files/es-HN.lproj/Localizable.strings


二进制
iOSClient/Supporting Files/es-HN.lproj/SwiftWebVC.strings


二进制
iOSClient/Supporting Files/es-MX.lproj/BKPasscodeView.strings


二进制
iOSClient/Supporting Files/es-MX.lproj/CTAssetsPicker.strings


二进制
iOSClient/Supporting Files/es-MX.lproj/Error.strings


二进制
iOSClient/Supporting Files/es-MX.lproj/InfoPlist.strings


二进制
iOSClient/Supporting Files/es-MX.lproj/Intro.strings


二进制
iOSClient/Supporting Files/es-MX.lproj/Localizable.strings


二进制
iOSClient/Supporting Files/es-MX.lproj/SwiftWebVC.strings


二进制
iOSClient/Supporting Files/es-NI.lproj/BKPasscodeView.strings


二进制
iOSClient/Supporting Files/es-NI.lproj/CTAssetsPicker.strings


二进制
iOSClient/Supporting Files/es-NI.lproj/Error.strings


二进制
iOSClient/Supporting Files/es-NI.lproj/InfoPlist.strings


二进制
iOSClient/Supporting Files/es-NI.lproj/Intro.strings


二进制
iOSClient/Supporting Files/es-NI.lproj/Localizable.strings


二进制
iOSClient/Supporting Files/es-NI.lproj/SwiftWebVC.strings


二进制
iOSClient/Supporting Files/es-PA.lproj/BKPasscodeView.strings


二进制
iOSClient/Supporting Files/es-PA.lproj/CTAssetsPicker.strings


二进制
iOSClient/Supporting Files/es-PA.lproj/Error.strings


二进制
iOSClient/Supporting Files/es-PA.lproj/InfoPlist.strings


二进制
iOSClient/Supporting Files/es-PA.lproj/Intro.strings


二进制
iOSClient/Supporting Files/es-PA.lproj/Localizable.strings


二进制
iOSClient/Supporting Files/es-PA.lproj/SwiftWebVC.strings


二进制
iOSClient/Supporting Files/es-PE.lproj/BKPasscodeView.strings


二进制
iOSClient/Supporting Files/es-PE.lproj/CTAssetsPicker.strings


二进制
iOSClient/Supporting Files/es-PE.lproj/Error.strings


二进制
iOSClient/Supporting Files/es-PE.lproj/InfoPlist.strings


二进制
iOSClient/Supporting Files/es-PE.lproj/Intro.strings


二进制
iOSClient/Supporting Files/es-PE.lproj/Localizable.strings


二进制
iOSClient/Supporting Files/es-PE.lproj/SwiftWebVC.strings


二进制
iOSClient/Supporting Files/es-PR.lproj/BKPasscodeView.strings


二进制
iOSClient/Supporting Files/es-PR.lproj/CTAssetsPicker.strings


二进制
iOSClient/Supporting Files/es-PR.lproj/Error.strings


二进制
iOSClient/Supporting Files/es-PR.lproj/InfoPlist.strings


二进制
iOSClient/Supporting Files/es-PR.lproj/Intro.strings


二进制
iOSClient/Supporting Files/es-PR.lproj/Localizable.strings


二进制
iOSClient/Supporting Files/es-PR.lproj/SwiftWebVC.strings


部分文件因为文件数量过多而无法显示