diff --git a/Undecimus/source/JailbreakViewController.m b/Undecimus/source/JailbreakViewController.m index a8c0fa7f..c5689175 100644 --- a/Undecimus/source/JailbreakViewController.m +++ b/Undecimus/source/JailbreakViewController.m @@ -136,8 +136,10 @@ - (void)darkMode { [self.backgroundView setBackgroundColor:[UIColor colorWithRed:10.0f/255.0f green:13.0f/255.0f blue:17.0f/255.0f alpha:0.97f]]; [self.mainDevsButton setTitleColor:[UIColor whiteColor] forState:normal]; [self.settingsNavBar setTintColor:[UIColor whiteColor]]; + [self.settingsNavBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}]; [self.settingsNavBar setLargeTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}]; [self.creditsNavBar setTintColor:[UIColor whiteColor]]; + [self.creditsNavBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}]; [self.creditsNavBar setLargeTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}]; self.jailbreakProgressBar.trackTintColor = [UIColor blackColor]; [self setNeedsStatusBarAppearanceUpdate]; @@ -163,8 +165,10 @@ - (void)lightMode { [self.outputView setTextColor:[UIColor blackColor]]; [self.backgroundView setBackgroundColor:[UIColor.whiteColor colorWithAlphaComponent:0.84]]; [self.settingsNavBar setTintColor:[UIColor blackColor]]; + [self.settingsNavBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor blackColor]}]; [self.settingsNavBar setLargeTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor blackColor]}]; [self.creditsNavBar setTintColor:[UIColor blackColor]]; + [self.creditsNavBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor blackColor]}]; [self.creditsNavBar setLargeTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor blackColor]}]; self.jailbreakProgressBar.trackTintColor = [UIColor lightGrayColor]; [self setNeedsStatusBarAppearanceUpdate]; diff --git a/Undecimus/source/SettingsTableViewController.m b/Undecimus/source/SettingsTableViewController.m index 4ee29406..90bc9f89 100644 --- a/Undecimus/source/SettingsTableViewController.m +++ b/Undecimus/source/SettingsTableViewController.m @@ -93,6 +93,8 @@ -(void)darkModeSettings:(NSNotification *) notification { [self.expiryLabel setValue:[UIColor darkGrayColor] forKeyPath:@"_placeholderLabel.textColor"]; [self.uptimeLabel setValue:[UIColor darkGrayColor] forKeyPath:@"_placeholderLabel.textColor"]; [self.upTimeLabel setTextColor:[UIColor whiteColor]]; + + [JailbreakViewController.sharedController.navigationController.navigationBar setLargeTitleTextAttributes:@{ NSForegroundColorAttributeName : [UIColor whiteColor] }]; } -(void)lightModeSettings:(NSNotification *) notification { @@ -129,6 +131,8 @@ -(void)lightModeSettings:(NSNotification *) notification { [self.expiryLabel setValue:[UIColor lightGrayColor] forKeyPath:@"_placeholderLabel.textColor"]; [self.uptimeLabel setValue:[UIColor lightGrayColor] forKeyPath:@"_placeholderLabel.textColor"]; [self.upTimeLabel setTextColor:[UIColor blackColor]]; + + [JailbreakViewController.sharedController.navigationController.navigationBar setLargeTitleTextAttributes:@{ NSForegroundColorAttributeName : [UIColor blackColor] }]; } - (void)userTappedAnyware:(UITapGestureRecognizer *) sender