소스 검색

Theming color

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 년 전
부모
커밋
12c25cb2ec
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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 {