Explorar el Código

Theming color

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana hace 2 años
padre
commit
12c25cb2ec
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      iOSClient/Brand/NCBrand.swift

+ 3 - 3
iOSClient/Brand/NCBrand.swift

@@ -414,7 +414,7 @@ class NCBrandColor: NSObject {
                 self.themingColorText = themingColorText
                 
                 // COLOR
-                if themingColor?.first == "#" {
+                if themingColor.first == "#" {
                     if let color = UIColor(hex: themingColor) {
                         NCBrandColor.shared.brand = color
                     } else {
@@ -425,7 +425,7 @@ class NCBrandColor: NSObject {
                 }
 
                 // COLOR TEXT
-                if themingColorText?.first == "#" {
+                if themingColorText.first == "#" {
                     if let color = UIColor(hex: themingColorText) {
                         NCBrandColor.shared.brandText = color
                     } else {
@@ -436,7 +436,7 @@ class NCBrandColor: NSObject {
                 }
 
                 // COLOR ELEMENT
-                if themingColorElement?.first == "#" {
+                if themingColorElement.first == "#" {
                     if let color = UIColor(hex: themingColorElement) {
                         NCBrandColor.shared.brandElement = color
                     } else {