Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(575)

Unified Diff: remoting/ios/app/remoting_view_controller.mm

Issue 2921413002: [CRD iOS] Finish up the host list UI (Closed)
Patch Set: Added sources to the target. Hopefully it will fix the issue Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/ios/app/remoting_view_controller.mm
diff --git a/remoting/ios/app/remoting_view_controller.mm b/remoting/ios/app/remoting_view_controller.mm
index d6e6e9cf4068f436fc17e4f825b0c030f9f32c97..268820b92209848087d3bb2d8fe25e60f18e3607 100644
--- a/remoting/ios/app/remoting_view_controller.mm
+++ b/remoting/ios/app/remoting_view_controller.mm
@@ -68,23 +68,28 @@ static UIColor* kChromotingBlueBackground =
_appBar = [[MDCAppBar alloc] init];
[self addChildViewController:_appBar.headerViewController];
- _appBar.headerViewController.headerView.backgroundColor =
- kChromotingBlueBackground;
- _appBar.navigationBar.tintColor = [UIColor whiteColor];
+ self.navigationItem.title = @"Chrome Remote Desktop";
UIBarButtonItem* menuButton =
- [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"Settings"]
+ [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"ic_menu"]
style:UIBarButtonItemStyleDone
target:self
action:@selector(didSelectSettings)];
self.navigationItem.leftBarButtonItem = menuButton;
- UIBarButtonItem* refreshButton =
- [[UIBarButtonItem alloc] initWithTitle:@"Refresh"
- style:UIBarButtonItemStyleDone
- target:self
- action:@selector(didSelectRefresh)];
+ UIBarButtonItem* refreshButton = [[UIBarButtonItem alloc]
+ initWithImage:[UIImage imageNamed:@"ic_refresh"]
+ style:UIBarButtonItemStyleDone
+ target:self
+ action:@selector(didSelectRefresh)];
self.navigationItem.rightBarButtonItem = refreshButton;
+
+ _appBar.headerViewController.headerView.backgroundColor =
+ kChromotingBlueBackground;
+ _appBar.navigationBar.backgroundColor = kChromotingBlueBackground;
+ MDCNavigationBarTextColorAccessibilityMutator* mutator =
+ [[MDCNavigationBarTextColorAccessibilityMutator alloc] init];
+ [mutator mutate:_appBar.navigationBar];
}
return self;
}

Powered by Google App Engine
This is Rietveld 408576698