mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 11:52:00 +00:00
Update AppIconOptionsController.m
This commit is contained in:
parent
941a8a79c6
commit
d9240ef290
1 changed files with 3 additions and 1 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
@property (strong, nonatomic) UITableView *tableView;
|
@property (strong, nonatomic) UITableView *tableView;
|
||||||
@property (strong, nonatomic) NSArray<NSString *> *appIcons;
|
@property (strong, nonatomic) NSArray<NSString *> *appIcons;
|
||||||
@property (assign, nonatomic) NSInteger selectedIconIndex;
|
@property (assign, nonatomic) NSInteger selectedIconIndex;
|
||||||
|
@property (strong, nonatomic) UIImageView *backButton;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
@ -28,6 +29,7 @@
|
||||||
self.tableView.delegate = self;
|
self.tableView.delegate = self;
|
||||||
[self.view addSubview:self.tableView];
|
[self.view addSubview:self.tableView];
|
||||||
|
|
||||||
|
self.backButton = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 30, 30)];
|
||||||
UIImage *backImage = [UIImage imageNamed:@"yt_outline_chevron_left_ios_24pt" inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil];
|
UIImage *backImage = [UIImage imageNamed:@"yt_outline_chevron_left_ios_24pt" inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil];
|
||||||
if (!backImage) {
|
if (!backImage) {
|
||||||
backButton.image = [UIImage systemImageNamed:@"chevron.backward"];
|
backButton.image = [UIImage systemImageNamed:@"chevron.backward"];
|
||||||
|
|
@ -41,7 +43,7 @@
|
||||||
UIBarButtonItem *saveButton = [[UIBarButtonItem alloc] initWithTitle:@"Save" style:UIBarButtonItemStylePlain target:self action:@selector(saveIcon)];
|
UIBarButtonItem *saveButton = [[UIBarButtonItem alloc] initWithTitle:@"Save" style:UIBarButtonItemStylePlain target:self action:@selector(saveIcon)];
|
||||||
[saveButton setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor], NSFontAttributeName: [UIFont fontWithName:@"YTSans-Medium" size:17]} forState:UIControlStateNormal];
|
[saveButton setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor], NSFontAttributeName: [UIFont fontWithName:@"YTSans-Medium" size:17]} forState:UIControlStateNormal];
|
||||||
|
|
||||||
self.navigationItem.rightBarButtonItems = @[resetButton, saveButton];
|
self.navigationItem.rightBarButtonItems = @[saveButton, resetButton];
|
||||||
|
|
||||||
NSString *path = [[NSBundle mainBundle] pathForResource:@"uYouPlus" ofType:@"bundle"];
|
NSString *path = [[NSBundle mainBundle] pathForResource:@"uYouPlus" ofType:@"bundle"];
|
||||||
NSBundle *bundle = [NSBundle bundleWithPath:path];
|
NSBundle *bundle = [NSBundle bundleWithPath:path];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue