Kaynağa Gözat

use loadImage for Appreance

Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
marinofaggiana 3 yıl önce
ebeveyn
işleme
e44e058cf9
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      iOSClient/Menu/UIViewController+Menu.swift

+ 1 - 1
iOSClient/Menu/UIViewController+Menu.swift

@@ -72,7 +72,7 @@ extension UIViewController {
                 action: nil)
 
             let actions = card.actions.map { action -> NCMenuAction in
-                var image = UIImage(named: "user") ?? UIImage()
+                var image = NCUtility.shared.loadImage(named: "user", color: NCBrandColor.shared.label)
                 if let url = URL(string: action.icon),
                    let svgSource = SVGKSourceURL.source(from: url),
                    let svg = SVGKImage(source: svgSource) {