Update ColourOptionsController.m

This commit is contained in:
arichornlover 2024-02-18 19:06:40 -06:00 committed by GitHub
parent 5720e5f50a
commit 1a6dcaf304
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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