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

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

Issue 2929663002: [CRD iOS] Fix color scheme and other UI issues (Closed)
Patch Set: resolve feedback 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 268820b92209848087d3bb2d8fe25e60f18e3607..d7ba752c1efc12fd45b0bf5b8ea61495e1da186b 100644
--- a/remoting/ios/app/remoting_view_controller.mm
+++ b/remoting/ios/app/remoting_view_controller.mm
@@ -17,6 +17,7 @@
#import "remoting/ios/app/host_collection_view_controller.h"
#import "remoting/ios/app/host_view_controller.h"
#import "remoting/ios/app/remoting_settings_view_controller.h"
+#import "remoting/ios/app/remoting_theme.h"
#import "remoting/ios/domain/client_session_details.h"
#import "remoting/ios/facade/remoting_authentication.h"
#import "remoting/ios/facade/remoting_service.h"
@@ -27,9 +28,6 @@
static CGFloat kHostInset = 5.f;
-static UIColor* kChromotingBlueBackground =
- [UIColor colorWithRed:0.11f green:0.23f blue:0.66f alpha:1.f];
-
@interface RemotingViewController ()<HostCollectionViewControllerDelegate,
UIViewControllerAnimatedTransitioning,
UIViewControllerTransitioningDelegate> {
@@ -85,8 +83,9 @@ static UIColor* kChromotingBlueBackground =
self.navigationItem.rightBarButtonItem = refreshButton;
_appBar.headerViewController.headerView.backgroundColor =
- kChromotingBlueBackground;
- _appBar.navigationBar.backgroundColor = kChromotingBlueBackground;
+ RemotingTheme.hostListBackgroundColor;
+ _appBar.navigationBar.backgroundColor =
+ RemotingTheme.hostListBackgroundColor;
MDCNavigationBarTextColorAccessibilityMutator* mutator =
[[MDCNavigationBarTextColorAccessibilityMutator alloc] init];
[mutator mutate:_appBar.navigationBar];
@@ -197,6 +196,7 @@ static UIColor* kChromotingBlueBackground =
return;
}
+ [MDCSnackbarManager dismissAndCallCompletionBlocksWithCategory:nil];
ClientConnectionViewController* clientConnectionViewController =
[[ClientConnectionViewController alloc] initWithHostInfo:cell.hostInfo];
[self.navigationController pushViewController:clientConnectionViewController
« no previous file with comments | « remoting/ios/app/remoting_theme.mm ('k') | remoting/ios/app/resources/Assets.xcassets/Background.imageset/Contents.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698