From 1a6dcaf3047349db5d310827819c79615b5e3f04 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Sun, 18 Feb 2024 19:06:40 -0600 Subject: [PATCH] Update ColourOptionsController.m --- Sources/ColourOptionsController.m | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/Sources/ColourOptionsController.m b/Sources/ColourOptionsController.m index fc97fcf..fef7ff8 100644 --- a/Sources/ColourOptionsController.m +++ b/Sources/ColourOptionsController.m @@ -1,15 +1,13 @@ #import "ColourOptionsController.h" -#import "../uYouPlus.h" +#import "uYouPlus.h" @interface ColourOptionsController () -- (void)coloursView; @end @implementation ColourOptionsController - (void)loadView { [super loadView]; - [self coloursView]; self.title = @"Theme Custom Color"; @@ -30,19 +28,6 @@ self.selectedColor = color; } -- (void)coloursView { - if (self.traitCollection.userInterfaceStyle == UIUserInterfaceStyleLight) { - self.view.backgroundColor = [UIColor colorWithRed:0.949 green:0.949 blue:0.969 alpha:1.0]; - [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor blackColor]}]; - self.navigationController.navigationBar.barStyle = UIBarStyleDefault; - } - else { - self.view.backgroundColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0]; - [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}]; - self.navigationController.navigationBar.barStyle = UIBarStyleBlack; - } -} - - (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection { [super traitCollectionDidChange:previousTraitCollection]; [self coloursView];