mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
Add YT Back Icon Support (AppIconOptionsController.m)
This commit is contained in:
parent
e40ace75f3
commit
7668d0be1b
1 changed files with 1 additions and 7 deletions
|
|
@ -27,13 +27,7 @@
|
|||
self.tableView.backgroundColor = (self.pageStyle == UIUserInterfaceStyleLight) ? [UIColor whiteColor] : [UIColor blackColor];
|
||||
[self.view addSubview:self.tableView];
|
||||
|
||||
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:self action:@selector(back)];
|
||||
UIImage *backImage = [UIImage imageNamed:@"yt_outline_chevron_left_ios_24pt" inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil];
|
||||
if (!backImage) {
|
||||
backButton.image = [UIImage systemImageNamed:@"chevron.backward"];
|
||||
} else {
|
||||
backButton.image = backImage;
|
||||
}
|
||||
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"Back.png" inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:nil] style:UIBarButtonItemStylePlain target:self action:@selector(back)];
|
||||
[backButton setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor blackColor], NSFontAttributeName: [UIFont fontWithName:@"YTSans-Medium" size:20]} forState:UIControlStateNormal];
|
||||
self.navigationItem.leftBarButtonItem = backButton;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue