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:
arichornlover 2024-04-27 13:04:20 -05:00 committed by GitHub
parent af5559bd6a
commit 832b68f21b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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