Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions Brand/Custom.xcassets/introSlide1.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"images" : [
{
"filename" : "introSlide1.png",
"idiom" : "iphone",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "iphone",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "iphone",
"scale" : "3x"
},
{
"filename" : "Tablet Portrait - first slide-1.png",
"idiom" : "ipad",
"scale" : "1x"
},
{
"filename" : "Tablet Portrait - first slide.png",
"idiom" : "ipad",
"scale" : "2x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions Brand/Custom.xcassets/introSlide2.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"images" : [
{
"filename" : "introSlide2.png",
"idiom" : "iphone",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "iphone",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "iphone",
"scale" : "3x"
},
{
"filename" : "Tablet Portrait - third slide-1.png",
"idiom" : "ipad",
"scale" : "1x"
},
{
"filename" : "Tablet Portrait - third slide.png",
"idiom" : "ipad",
"scale" : "2x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions Brand/Custom.xcassets/introSlide3.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"images" : [
{
"filename" : "introSlide3.png",
"idiom" : "iphone",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "iphone",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "iphone",
"scale" : "3x"
},
{
"filename" : "Tablet Portrait - second slide-1.png",
"idiom" : "ipad",
"scale" : "1x"
},
{
"filename" : "Tablet Portrait - second slide.png",
"idiom" : "ipad",
"scale" : "2x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions Brand/Custom.xcassets/introSlideEight1.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions Brand/Custom.xcassets/introSlideEight2.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions Brand/Custom.xcassets/introSlideEight3.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions Brand/Custom.xcassets/introSlideLand1.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"images" : [
{
"filename" : "introSlide1.png",
"idiom" : "iphone",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "iphone",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "iphone",
"scale" : "3x"
},
{
"filename" : "Tablet Landscape - first slide.png",
"idiom" : "ipad",
"scale" : "1x"
},
{
"filename" : "Tablet Landscape - first slide-1.png",
"idiom" : "ipad",
"scale" : "2x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions Brand/Custom.xcassets/introSlideLand2.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"images" : [
{
"filename" : "introSlide2.png",
"idiom" : "iphone",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "iphone",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "iphone",
"scale" : "3x"
},
{
"filename" : "Tablet Landscape - second slide.png",
"idiom" : "ipad",
"scale" : "1x"
},
{
"filename" : "Tablet Landscape - second slide-1.png",
"idiom" : "ipad",
"scale" : "2x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions Brand/Custom.xcassets/introSlideLand3.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"images" : [
{
"filename" : "introSlide3.png",
"idiom" : "iphone",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "iphone",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "iphone",
"scale" : "3x"
},
{
"filename" : "Tablet Landscape - third slide.png",
"idiom" : "ipad",
"scale" : "1x"
},
{
"filename" : "Tablet Landscape - third slide-1.png",
"idiom" : "ipad",
"scale" : "2x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
88 changes: 75 additions & 13 deletions Brand/NCBrand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,25 @@ let userAgent: String = {
return instance
}()

var brand: String = "Nextcloud"
var textCopyrightNextcloudiOS: String = "Nextcloud Hydrogen for iOS %@ © 2024"
var textCopyrightNextcloudServer: String = "Nextcloud Server %@"
var loginBaseUrl: String = "https://cloud.nextcloud.com"
@objc var pushNotificationServerProxy: String = "https://push-notifications.nextcloud.com"
var linkLoginHost: String = "https://nextcloud.com/install"
var linkloginPreferredProviders: String = "https://nextcloud.com/signup-ios"
var webLoginAutenticationProtocol: String = "nc://" // example "abc://"
var privacy: String = "https://nextcloud.com/privacy"
var sourceCode: String = "https://github.com/nextcloud/ios"
var mobileconfig: String = "/remote.php/dav/provisioning/apple-provisioning.mobileconfig"
var appStoreUrl: String = "https://apps.apple.com/in/app/nextcloud/id1125420102"
@objc public var brand: String = "Nextcloud"
@objc public var textCopyrightNextcloudiOS: String = "Nextcloud Hydrogen for iOS %@ © 2024"
@objc public var textCopyrightNextcloudServer: String = "Nextcloud Server %@"
@objc public var loginBaseUrl: String = "https://cloud.nextcloud.com"
@objc public var pushNotificationServerProxy: String = "https://push-notifications.nextcloud.com"
@objc public var linkLoginHost: String = "https://nextcloud.com/install"
@objc public var linkloginPreferredProviders: String = "https://nextcloud.com/signup-ios"
@objc public var webLoginAutenticationProtocol: String = "nc://" // example "abc://"
@objc public var privacy: String = "https://nextcloud.com/privacy"
@objc public var sourceCode: String = "https://github.com/nextcloud/ios"
@objc public var mobileconfig: String = "/remote.php/dav/provisioning/apple-provisioning.mobileconfig"
@objc public var appStoreUrl: String = "https://apps.apple.com/de/app/magentacloud-cloud-speicher/id312838242"

// Personalized
@objc public var webCloseViewProtocolPersonalized: String = "" // example "abc://change/plan" Don't touch me !!
@objc public var folderBrandAutoUpload: String = "" // example "_auto_upload_folder_" Don't touch me !!

// Auto Upload default folder
var folderDefaultAutoUpload: String = "Photos"
@objc public var folderDefaultAutoUpload: String = Locale.current.languageCode == "de" ? "Kamera-Medien" : "Camera-Media"

// Capabilities Group
var capabilitiesGroup: String = "group.it.twsweb.Crypto-Cloud"
Expand Down Expand Up @@ -296,4 +300,62 @@ class NCBrandColor: NSObject {

return palette1 + palette2 + palette3
}

@objc public var iconColor: UIColor{
if #available(iOS 13.0, *) {
if UITraitCollection.current.userInterfaceStyle == .dark {
return UIColor(displayP3Red: 204.0/255.0, green: 204.0/255.0, blue: 204.0/255.0, alpha: 1.0)
}else {
return UIColor(red: 38.0/255.0, green: 38.0/255.0, blue: 38.0/255.0, alpha: 1.0)
}
} else {
return UIColor(red: 38.0/255.0, green: 38.0/255.0, blue: 38.0/255.0, alpha: 1.0)
}
}

@objc public var notificationAction: UIColor {
return UIColor(red: 0/255.0, green: 153/255.0, blue: 255/255.0, alpha: 1.0)
}

@objc public var secondarySystemGroupedBackground: UIColor = UIColor.secondarySystemGroupedBackground
@objc public var label: UIColor = UIColor.label
@objc public var backgroundForm: UIColor = UIColor(red: 244.0/255.0, green: 244.0/255.0, blue: 244.0/255.0, alpha: 1.0)
@objc public let graySoft: UIColor = UIColor(red: 162.0/255.0, green: 162.0/255.0, blue: 162.0/255.0, alpha: 0.5)
@objc public let systemGray4: UIColor = UIColor.systemGray4
@objc public let systemBackground: UIColor = UIColor.systemBackground
@objc public let textInfo: UIColor = UIColor(red: 153.0/255.0, green: 153.0/255.0, blue: 153.0/255.0, alpha: 1.0)
@objc public let systemGray: UIColor = UIColor.systemGray
@objc public let customerDarkGrey: UIColor = UIColor(red: 38.0/255.0, green: 38.0/255.0, blue: 38.0/255.0, alpha: 1.0)
@objc public var fileFolderName: UIColor = UIColor(displayP3Red: 102.0/255.0, green: 102.0/255.0, blue: 102.0/255.0, alpha: 1.0)
@objc public let optionItem: UIColor = UIColor(red: 178.0/255.0, green: 178.0/255.0, blue: 178.0/255.0, alpha: 1.0)
@objc public var singleTitleColorButton: UIColor = UIColor(red: 25.0/255.0, green: 25.0/255.0, blue: 25.0/255.0, alpha: 1.0)
@objc public var shareCellTitleColor: UIColor = UIColor(displayP3Red: 242.0/255.0, green: 242.0/255.0, blue: 242.0/255.0, alpha: 1.0)
@objc public var gray60: UIColor {
if UITraitCollection.current.userInterfaceStyle == .dark {
return UIColor(red: 178.0/255.0, green: 178.0/255.0, blue: 178.0/255.0, alpha: 1.0)
} else {
return UIColor(red: 102.0/255.0, green: 102.0/255.0, blue: 102.0/255.0, alpha: 1.0)
}
}
@objc public var systemGray2: UIColor = UIColor.systemGray2
@objc public var shareByEmailTextColor: UIColor = UIColor(displayP3Red: 13.0/255.0, green: 57.0/255.0, blue: 223.0/255.0, alpha: 1.0)
@objc public var memoryConsuptionBackground: UIColor {
if UITraitCollection.current.userInterfaceStyle == .dark {
return UIColor(red: 25.0/255.0, green: 25.0/255.0, blue: 25.0/255.0, alpha: 1.0)
} else {
return UIColor(red: 244.0/255.0, green: 244.0/255.0, blue: 244.0/255.0, alpha: 1.0)
}
}
@objc public var nmcGray0: UIColor{
if UITraitCollection.current.userInterfaceStyle == .dark {
return UIColor(displayP3Red: 242.0/255.0, green: 242.0/255.0, blue: 242.0/255.0, alpha: 1.0)
}else {
return UIColor(red: 19.0/255.0, green: 19.0/255.0, blue: 19.0/255.0, alpha: 1.0)
}
}
@objc public var commonViewInfoText: UIColor = UIColor(displayP3Red: 102.0/255.0, green: 102.0/255.0, blue: 102.0/255.0, alpha: 1.0)
@objc public let progressColorGreen60: UIColor = UIColor(red: 115.0/255.0, green: 195.0/255.0, blue: 84.0/255.0, alpha: 1.0)
@objc public var seperatorRename: UIColor = UIColor(red: 235.0/255.0, green: 235.0/255.0, blue: 235.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 var nmcIconSharedWithMe: UIColor = UIColor(displayP3Red: 0.0/255.0, green: 153.0/255.0, blue: 255.0/255.0, alpha: 1.0)
}
11 changes: 11 additions & 0 deletions iOSClient/Extensions/UIImage+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,17 @@ extension UIImage {
guard CGImageDestinationFinalize(destination) else { return nil }
return mutableData as Data
}

func imageColor(_ color: UIColor) -> UIImage {
if #available(iOS 13.0, *) {
return self.withTintColor(color, renderingMode: .alwaysOriginal)
} else {
return UIGraphicsImageRenderer(size: size, format: imageRendererFormat).image { _ in
color.set()
withRenderingMode(.alwaysTemplate).draw(at: .zero)
}
}
}
}

extension CGImagePropertyOrientation {
Expand Down
3 changes: 3 additions & 0 deletions iOSClient/Images.xcassets/InfoNetwork.imageset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading