mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-07 13:03:54 +00:00
[ios] Changed icons for search categories to SVGs and matched their new style
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
d85949c716
commit
527031adba
@@ -15,11 +15,11 @@ final class SearchCategoryCell: UITableViewCell {
|
||||
func configure(with categoryName: String) {
|
||||
self.categoryName = categoryName
|
||||
textLabel?.text = L(categoryName)
|
||||
imageView?.mwm_name = String(format: "ic_%@", categoryName)
|
||||
imageView?.image = UIImage(named: String(format: "Search/Categories/%@", categoryName.replacingOccurrences(of: "category_", with: "")))
|
||||
}
|
||||
|
||||
override func applyTheme() {
|
||||
super.applyTheme()
|
||||
imageView?.mwm_name = String(format: "ic_%@", categoryName)
|
||||
imageView?.image = UIImage(named: String(format: "Search/Categories/%@", categoryName.replacingOccurrences(of: "category_", with: "")))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user