NCBrand.swift 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. //
  2. // NCBrandColor.swift
  3. // Crypto Cloud Technology Nextcloud
  4. //
  5. // Created by Marino Faggiana on 24/04/17.
  6. // Copyright (c) 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. import UIKit
  24. class NCBrandColor: NSObject {
  25. static let sharedInstance: NCBrandColor = {
  26. let instance = NCBrandColor()
  27. return instance
  28. }()
  29. public var brand: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 1.0) // BLU NC : #0082c9
  30. public var connectionNo: UIColor = UIColor(red: 204.0/255.0, green: 204.0/255.0, blue: 204.0/255.0, alpha: 1.0)
  31. public var cryptocloud: UIColor = UIColor(red: 241.0/255.0, green: 90.0/255.0, blue: 34.0/255.0, alpha: 1.0)
  32. public var groupByBar: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 0.2)
  33. public var groupByBarNoBlur: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 0.3)
  34. public var navigationBar: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 1.0) // BLU NC : #0082c9
  35. public var navigationBarProgress: UIColor = .white
  36. public var navigationBarShare: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 1.0) // BLU NC : #0082c9
  37. public var navigationBarText: UIColor = .white
  38. public var nextcloud: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 1.0) // BLU NC : #0082c9
  39. public var menuBackground: UIColor = .white
  40. public var messageInfoBackground: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 1.0) // BLU NC : #0082c9
  41. public var moreNormal: UIColor = .black
  42. public var moreSettings: UIColor = .black
  43. public var refreshControl: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 1.0) // BLU NC : #0082c9
  44. public var selectBackgrond: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 0.1)
  45. public var seperator: UIColor = UIColor(red: 235.0/255.0, green: 235.0/255.0, blue: 235.0/255.0, alpha: 1.0)
  46. public var tabBar: UIColor = .white
  47. public var tabBarText: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 1.0) // BLU NC : #0082c9
  48. public var tableBackground: UIColor = .white
  49. public var transferBackground: UIColor = UIColor(red: 178.0/255.0, green: 244.0/255.0, blue: 258.0/255.0, alpha: 0.1)
  50. public var windowTintcolor: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 1.0) // BLU NC : #0082c9
  51. }
  52. class NCBrandImages: NSObject {
  53. static let sharedInstance: NCBrandImages = {
  54. let instance = NCBrandImages()
  55. return instance
  56. }()
  57. public var login: String = "loginLogo"
  58. public var navigationLogo: String = "navigationLogo"
  59. public var navigationLogoOffline: String = "navigationLogoOffline"
  60. public var BackgroundDetail: String = "backgroundDetail"
  61. public var menuMoreImage: String = "menuMoreImage"
  62. }
  63. /*
  64. class NCBrandText: NSObject {
  65. static let sharedInstance: NCBrandText = {
  66. let instance = NCBrandText()
  67. return instance
  68. }()
  69. public var brand: String = "Nextcloud"
  70. public var mailBrand: String = "ios@nextcloud.com"
  71. public var copyrightNextcloudiOS : String = "Nextcloud for iOS %@ © 2017 T.W.S. Inc."
  72. public var copyrightNextcloudServer: String = "Nextcloud Server %@"
  73. public var loginBaseUrl: String = "https://cloud.twsweb.it"
  74. public var pushNotificationServer: String = "https://push-notifications.nextcloud.com"
  75. public var loginButtonLabelLink: String = "https://nextcloud.com/providers"
  76. public var webLoginAutenticationProtocol: String = ""
  77. }
  78. */