[AltStore] Uses tint color for AppIconImageView border color

This commit is contained in:
Riley Testut
2019-07-29 15:42:16 -07:00
parent e202c01aeb
commit d3c4ebbb5f

View File

@@ -20,7 +20,7 @@ class AppIconImageView: UIImageView
self.backgroundColor = .white self.backgroundColor = .white
self.layer.borderWidth = 0.5 self.layer.borderWidth = 0.5
self.layer.borderColor = UIColor.lightGray.cgColor self.layer.borderColor = self.tintColor.cgColor
// Allows us to match system look for app icons. // Allows us to match system look for app icons.
if self.layer.responds(to: Selector(("continuousCorners"))) if self.layer.responds(to: Selector(("continuousCorners")))
@@ -37,4 +37,11 @@ class AppIconImageView: UIImageView
let radius = self.bounds.height / 5 let radius = self.bounds.height / 5
self.layer.cornerRadius = radius self.layer.cornerRadius = radius
} }
override func tintColorDidChange()
{
super.tintColorDidChange()
self.layer.borderColor = self.tintColor.cgColor
}
} }