Skip to content

Commit

Permalink
FMImageEditor: Fix missing icons config for buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
congnd committed Jun 6, 2020
1 parent c7aaa76 commit 97c3ed0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ public class FMImageEditorViewController: UIViewController {
self.cropSubMenuView?.insert(toView: self.subMenuContainer)

// convert crop/filter icon to tint
let filterTintIcon = self.filterMenuButton.imageView?.image?.withRenderingMode(.alwaysTemplate)
let filterTintIcon = UIImage(named: "icon_filter", in: Bundle(for: Self.self), compatibleWith: nil)?.withRenderingMode(.alwaysTemplate)
self.filterMenuButton.setImage(filterTintIcon, for: .normal)

let cropTintIcon = self.cropMenuButton.imageView?.image?.withRenderingMode(.alwaysTemplate)
let cropTintIcon = UIImage(named: "icon_crop", in: Bundle(for: Self.self), compatibleWith: nil)?.withRenderingMode(.alwaysTemplate)
self.cropMenuButton.setImage(cropTintIcon, for: .normal)

// default color
Expand Down

0 comments on commit 97c3ed0

Please sign in to comment.