mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-08 05:17:56 +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
@@ -43,8 +43,11 @@
|
||||
attrSet.displayName = [[CSLocalizedString alloc] initWithLocalizedStrings:localizedStrings];
|
||||
|
||||
NSString * categoryKeyString = @(categoryKey.c_str());
|
||||
NSString * imageName = [NSString stringWithFormat:@"ic_%@_spotlight", categoryKeyString];
|
||||
UIImage * image = [UIImage imageNamed:imageName];
|
||||
NSString * imageName = [NSString stringWithFormat:@"Search/Categories/%@", [categoryKeyString stringByReplacingOccurrencesOfString: @"category_" withString:@""]];
|
||||
UIGraphicsBeginImageContext(CGSizeMake(360, 360));
|
||||
[[UIImage imageNamed:imageName] drawInRect:CGRectMake(0, 0, 360, 360)];
|
||||
UIImage * image = UIGraphicsGetImageFromCurrentImageContext();
|
||||
UIGraphicsEndImageContext() ;
|
||||
attrSet.thumbnailData = UIImagePNGRepresentation(image);
|
||||
|
||||
CSSearchableItem * item =
|
||||
|
||||
Reference in New Issue
Block a user