CCNextcloudConstant.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. //
  2. // CCConstant.h
  3. // Nextcloud
  4. //
  5. // Created by Marino Faggiana on 06/03/17.
  6. // Copyright © 2017 TWS. All rights reserved.
  7. //
  8. // Author Marino Faggiana <m.faggiana@twsweb.it>
  9. //
  10. // This program is free software: you can redistribute it and/or modify
  11. // it under the terms of the GNU General Public License as published by
  12. // the Free Software Foundation, either version 3 of the License, or
  13. // (at your option) any later version.
  14. //
  15. // This program is distributed in the hope that it will be useful,
  16. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. // GNU General Public License for more details.
  19. //
  20. // You should have received a copy of the GNU General Public License
  21. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. //
  23. // Brand
  24. #define k_brand @"Nextcloud"
  25. #define k_mailMe @"ios@nextcloud.com"
  26. #define k_textCopyright @"Nextcloud %@ © 2017 T.W.S. Inc."
  27. #define k_loginBaseUrl @"https://cloud.twsweb.it"
  28. #define k_pushNotificationServer @"https://push-notifications.nextcloud.com"
  29. // Capabilities Group & Service Key Share
  30. #define k_capabilitiesGroups @"group.it.twsweb.Crypto-Cloud"
  31. #define k_serviceShareKeyChain @"Crypto Cloud"
  32. #define k_metadataKeyedUnarchiver @"it.twsweb.Crypto-Cloud.metadata"
  33. // Session
  34. #define k_download_session @"it.twsweb.Crypto-Cloud.download.session"
  35. #define k_download_session_foreground @"it.twsweb.Crypto-Cloud.download.sessionforeground"
  36. #define k_download_session_wwan @"it.twsweb.Crypto-Cloud.download.sessionwwan"
  37. #define k_upload_session @"it.twsweb.Crypto-Cloud.upload.session"
  38. #define k_upload_session_foreground @"it.twsweb.Crypto-Cloud.upload.sessionforeground"
  39. #define k_upload_session_wwan @"it.twsweb.Crypto-Cloud.upload.sessionwwan"
  40. // OperationQueue
  41. #define k_netQueueName @"it.twsweb.Crypto-Cloud.queue"
  42. #define k_netQueueDownloadName @"it.twsweb.Crypto-Cloud.queue.download"
  43. #define k_netQueueDownloadWWanName @"it.twsweb.Crypto-Cloud.queue.downloadwwan"
  44. #define k_netQueueUploadName @"it.twsweb.Crypto-Cloud.queue.upload"
  45. #define k_netQueueUploadWWanName @"it.twsweb.Crypto-Cloud.queue.uploadwwan"
  46. /* Define option compiler */
  47. /*
  48. #define OPTION_MULTIUSER_DISABLE
  49. #define OPTION_CRYPTO_CLOUD_SYSTEM_DISABLE
  50. #define OPTION_OFFLINE_DISABLE
  51. #define OPTION_NOTIFICATION_PUSH_ENABLE
  52. #define OPTION_AUTOMATIC_UPLOAD_ENABLE
  53. #define OPTION_DISABLE_INTRO
  54. #define MENU_BRAND_ENABLE
  55. #define NO_REQUEST_LOGIN_URL
  56. */
  57. #define OPTION_OFFLINE_DISABLE
  58. // -----------------------------------------------------------------------------------------------------------
  59. // COLOR
  60. // -----------------------------------------------------------------------------------------------------------
  61. #define COLOR_BRAND [UIColor colorWithRed:0.0/255.0 green:130.0/255.0 blue:201.0/255.0 alpha:1.0] // BLU NC : #0082c9
  62. #define COLOR_SELECT_BACKGROUND [UIColor colorWithRed:0.0/255.0 green:130.0/255.0 blue:201.0/255.0 alpha:0.1] // BLU NC : #0082c9
  63. #define COLOR_TRANSFER_BACKGROUND [UIColor colorWithRed:178.0/255.0 green:244.0/255.0 blue:258.0/255.0 alpha:0.1]
  64. #define COLOR_GROUPBY_BAR [UIColor colorWithRed:0.0/255.0 green:130.0/255.0 blue:201.0/255.0 alpha:0.2] // BLU NC : #0082c9
  65. #define COLOR_GROUPBY_BAR_NO_BLUR [UIColor colorWithRed:0.0/255.0 green:130.0/255.0 blue:201.0/255.0 alpha:0.3] // BLU NC : #0082c9
  66. #define COLOR_NAVIGATIONBAR [UIColor colorWithRed:0.0/255.0 green:130.0/255.0 blue:201.0/255.0 alpha:1.0] // BLU NC : #0082c9
  67. #define COLOR_NAVIGATIONBAR_TEXT [UIColor whiteColor]
  68. #define COLOR_NAVIGATIONBAR_PROGRESS [UIColor colorWithRed:241.0/255.0 green:90.0/255.0 blue:34.0/255.0 alpha:1.0]
  69. #define COLOR_TABBAR [UIColor colorWithRed:247.0/255.0 green:247.0/255.0 blue:247.0/255.0 alpha:1]
  70. #define COLOR_TABBAR_TEXT [UIColor colorWithRed:0.0/255.0 green:130.0/255.0 blue:201.0/255.0 alpha:1.0] // BLU NC : #0082c9
  71. #define COLOR_BACKGROUND_MENU [UIColor whiteColor]
  72. #define COLOR_BACKGROUND_PAGECONTROL [UIColor colorWithRed:247.0/255.0 green:247.0/255.0 blue:247.0/255.0 alpha:1.0]
  73. #define COLOR_PAGECONTROL_INDICATOR [UIColor colorWithRed:0.0/255.0 green:130.0/255.0 blue:201.0/255.0 alpha:1.0] // BLU NC : #0082c9
  74. #define COLOR_CRYPTOCLOUD [UIColor colorWithRed:241.0/255.0 green:90.0/255.0 blue:34.0/255.0 alpha:1.0]
  75. #define COLOR_TEXT_ANTHRACITE [UIColor colorWithRed:65.0/255.0 green:64.0/255.0 blue:66.0/255.0 alpha:1.0] // #414042
  76. #define COLOR_TEXT_NO_CONNECTION [UIColor colorWithRed:204.0/255.0 green:204.0/255.0 blue:204.0/255.0 alpha:1.0]
  77. #define COLOR_SEPARATOR_TABLE [UIColor colorWithRed:235.0/255.0 green:235.0/255.0 blue:235.0/255.0 alpha:1.0] // iOS 7
  78. #define COLOR_BACKGROUND_MESSAGE_INFO [UIColor colorWithRed:0.0/255.0 green:130.0/255.0 blue:201.0/255.0 alpha:1.0] // BLU NC : #0082c9
  79. #define COLOR_CONTROL_CENTER [UIColor colorWithRed:0.0/255.0 green:130.0/255.0 blue:201.0/255.0 alpha:1.0] // BLU NC : #0082c9
  80. #define COLOR_REFRESH_CONTROL [UIColor colorWithRed:0.0/255.0 green:130.0/255.0 blue:201.0/255.0 alpha:1.0] // BLU NC : #0082c9
  81. #define COLOR_WINDOW_TINTCOLOR [UIColor colorWithRed:0.0/255.0 green:130.0/255.0 blue:201.0/255.0 alpha:1.0] // BLU NC : #0082c9
  82. #define COLOR_PROGRESS_BAR_QUOTA [UIColor colorWithRed:0.0/255.0 green:130.0/255.0 blue:201.0/255.0 alpha:0.4] // BLU NC : #0082c9