mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Revamp RootOptionsController
This is being moved out of the Navigation bar and now being implemented into YouTube Settings. The changes were made to copy the Interface from the settings menu.
This commit is contained in:
parent
af5559bd6a
commit
832b68f21b
1 changed files with 11 additions and 5 deletions
|
|
@ -3,6 +3,10 @@
|
|||
#import "ColourOptionsController2.h"
|
||||
|
||||
@interface RootOptionsController ()
|
||||
|
||||
@property (strong, nonatomic) UIImageView *backButton;
|
||||
@property (assign, nonatomic) UIUserInterfaceStyle pageStyle;
|
||||
|
||||
@end
|
||||
|
||||
@implementation RootOptionsController
|
||||
|
|
@ -10,10 +14,12 @@
|
|||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
|
||||
self.title = @"uYouPlus Extras Menu";
|
||||
self.title = @"uYouEnhanced Extras Menu";
|
||||
[self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName: [UIFont fontWithName:@"YTSans-Bold" size:22], NSForegroundColorAttributeName: [UIColor whiteColor]}];
|
||||
|
||||
UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(done)];
|
||||
self.navigationItem.leftBarButtonItem = doneButton;
|
||||
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;
|
||||
|
||||
UITableViewStyle style;
|
||||
if (@available(iOS 13, *)) {
|
||||
|
|
@ -164,8 +170,8 @@
|
|||
|
||||
@implementation RootOptionsController (Privates)
|
||||
|
||||
- (void)done {
|
||||
[self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
|
||||
- (void)back {
|
||||
[self.navigationController popViewControllerAnimated:YES];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
|||
Loading…
Reference in a new issue