|
@@ -144,7 +144,8 @@ class NCBrandColor: NSObject {
|
|
|
@objc public let nextcloud: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 1.0)
|
|
|
@objc public let nextcloudSoft: UIColor = UIColor(red: 90.0/255.0, green: 160.0/255.0, blue: 210.0/255.0, alpha: 1.0)
|
|
|
@objc public let gray: UIColor = UIColor(red: 104.0/255.0, green: 104.0/255.0, blue: 104.0/255.0, alpha: 1.0)
|
|
|
-
|
|
|
+ @objc public let yellowFavorite: UIColor = UIColor(red: 248.0/255.0, green: 205.0/255.0, blue: 70.0/255.0, alpha: 1.0)
|
|
|
+
|
|
|
@objc public var systemBackground: UIColor {
|
|
|
get {
|
|
|
if #available(iOS 13, *) {
|
|
@@ -263,16 +264,6 @@ class NCBrandColor: NSObject {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @objc public var systemYellow: UIColor {
|
|
|
- get {
|
|
|
- if #available(iOS 13, *) {
|
|
|
- return .systemYellow
|
|
|
- } else {
|
|
|
- return UIColor(red: 1, green: 0.8, blue: 0, alpha: 1.0)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
override init() {
|
|
|
self.brand = self.customer
|
|
|
self.brandElement = self.customer
|
|
@@ -281,14 +272,16 @@ class NCBrandColor: NSObject {
|
|
|
|
|
|
public func createImagesThemingColor() {
|
|
|
|
|
|
+ let gray: UIColor = UIColor(red: 162.0/255.0, green: 162.0/255.0, blue: 162.0/255.0, alpha: 0.5)
|
|
|
+
|
|
|
cacheImages.file = UIImage.init(named: "file")!
|
|
|
|
|
|
- cacheImages.shared = UIImage(named: "share")!.image(color: systemGray4, size: 50)
|
|
|
- cacheImages.canShare = UIImage(named: "share")!.image(color: systemGray4, size: 50)
|
|
|
- cacheImages.shareByLink = UIImage(named: "sharebylink")!.image(color: systemGray4, size: 50)
|
|
|
+ cacheImages.shared = UIImage(named: "share")!.image(color: gray, size: 50)
|
|
|
+ cacheImages.canShare = UIImage(named: "share")!.image(color: gray, size: 50)
|
|
|
+ cacheImages.shareByLink = UIImage(named: "sharebylink")!.image(color: gray, size: 50)
|
|
|
|
|
|
- cacheImages.favorite = NCUtility.shared.loadImage(named: "star.fill", color: systemYellow)
|
|
|
- cacheImages.comment = UIImage(named: "comment")!.image(color: systemGray4, size: 50)
|
|
|
+ cacheImages.favorite = NCUtility.shared.loadImage(named: "star.fill", color: yellowFavorite)
|
|
|
+ cacheImages.comment = UIImage(named: "comment")!.image(color: gray, size: 50)
|
|
|
cacheImages.livePhoto = NCUtility.shared.loadImage(named: "livephoto", color: label)
|
|
|
cacheImages.offlineFlag = UIImage.init(named: "offlineFlag")!
|
|
|
cacheImages.local = UIImage.init(named: "local")!
|
|
@@ -303,10 +296,10 @@ class NCBrandColor: NSObject {
|
|
|
cacheImages.folder = UIImage(named: "folder")!.image(color: brandElement, size: folderWidth)
|
|
|
|
|
|
cacheImages.checkedYes = NCUtility.shared.loadImage(named: "checkmark.circle.fill", color: .darkGray)
|
|
|
- cacheImages.checkedNo = NCUtility.shared.loadImage(named: "circle", color: systemGray4)
|
|
|
+ cacheImages.checkedNo = NCUtility.shared.loadImage(named: "circle", color: gray)
|
|
|
|
|
|
- cacheImages.buttonMore = UIImage(named: "more")!.image(color: systemGray4, size: 50)
|
|
|
- cacheImages.buttonStop = UIImage(named: "stop")!.image(color: systemGray4, size: 50)
|
|
|
+ cacheImages.buttonMore = UIImage(named: "more")!.image(color: gray, size: 50)
|
|
|
+ cacheImages.buttonStop = UIImage(named: "stop")!.image(color: gray, size: 50)
|
|
|
}
|
|
|
|
|
|
#if !EXTENSION
|