From 293dc26b2e53624e6c67357608f90b468aa6b9ae Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 26 Aug 2018 19:00:16 -0700 Subject: [PATCH] Fix the navigation bar look --- Limelight/ViewControllers/MainFrameViewController.m | 6 +++++- Moonlight TV/Base.lproj/Main.storyboard | 12 +++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index 8d9573ef..2f443ff5 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -250,7 +250,7 @@ static NSMutableSet* hostList; [_appManager stopRetrieving]; _selectedHost = nil; #if TARGET_OS_TV - self.title = @""; + self.title = @"Select Host"; #else _computerNameButton.title = @"No Host Selected"; #endif @@ -692,6 +692,10 @@ static NSMutableSet* hostList; _menuRecognizer = [[UITapGestureRecognizer alloc] init]; [_menuRecognizer addTarget:self action: @selector(showHostSelectionView)]; _menuRecognizer.allowedPressTypes = [[NSArray alloc] initWithObjects:[NSNumber numberWithLong:UIPressTypeMenu], nil]; + + self.navigationController.navigationBar.titleTextAttributes = [NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:NSForegroundColorAttributeName]; + + self.title = @"Select Host"; #endif _loadingFrame = [self.storyboard instantiateViewControllerWithIdentifier:@"loadingFrame"]; diff --git a/Moonlight TV/Base.lproj/Main.storyboard b/Moonlight TV/Base.lproj/Main.storyboard index cf404a87..80a69808 100644 --- a/Moonlight TV/Base.lproj/Main.storyboard +++ b/Moonlight TV/Base.lproj/Main.storyboard @@ -14,9 +14,15 @@ - + + + + + + + @@ -38,11 +44,11 @@ - + - +