Browse Source

coding

Signed-off-by: marinofaggiana <marino.faggiana@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
d3c3320892
2 changed files with 7 additions and 10 deletions
  1. 4 7
      Widget/Nextcloud/NextcloudWidgetView.swift
  2. 3 3
      iOSClient/Brand/NCBrand.swift

+ 4 - 7
Widget/Nextcloud/NextcloudWidgetView.swift

@@ -35,7 +35,7 @@ struct NextcloudWidgetView: View {
                         .scaledToFit()
                         .frame(width: 18, height: 18)
                         .cornerRadius(4)
-                    Text(NCBrandOptions.shared.brand + "dde")
+                    Text(NCBrandOptions.shared.brand + "")
                         .font(.system(size: 12))
                         .textCase(.uppercase)
                 }
@@ -68,13 +68,10 @@ struct NextcloudWidgetView: View {
                         }
                     }
                     Spacer()
-                        .frame(width: geo.size.width, height: 15.0)
+                        .frame(width: geo.size.width, height: 16.0)
                     HStack(spacing: 5) {
-                        Image("nextcloud")
-                            .resizable()
-                            .scaledToFit()
-                            .frame(width: 18, height: 18)
-                            .cornerRadius(4)
+                        Image(systemName: "arrow.triangle.2.circlepath")
+                            .foregroundColor(Color(NCBrandColor.shared.brand))
                         Text("Uploading...")
                             .font(.system(size: 12))
                             .textCase(.uppercase)

+ 3 - 3
iOSClient/Brand/NCBrand.swift

@@ -146,11 +146,11 @@ class NCBrandColor: NSObject {
     }
 
     // Color
-    @objc public let customer: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 1.0)    // BLU NC : #0082c9
+    @objc public let customer: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 1.0)     // BLU NC : #0082c9
     @objc public var customerText: UIColor = .white
 
-    @objc public var brand: UIColor                                                                                 // don't touch me
-    @objc public var brandElement: UIColor                                                                                 // don't touch me
+    @objc public var brand: UIColor                                                                                     // don't touch me
+    @objc public var brandElement: UIColor                                                                              // don't touch me
     @objc public var brandText: UIColor                                                                                 // don't touch me
 
     @objc public let nextcloud: UIColor = UIColor(red: 0.0/255.0, green: 130.0/255.0, blue: 201.0/255.0, alpha: 1.0)