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

Unified Diff: ios/chrome/browser/ui/background_generator.mm

Issue 2730903004: [iOS] Replace background image with a uniform color.
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | ios/chrome/browser/ui/stack_view/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/background_generator.mm
diff --git a/ios/chrome/browser/ui/background_generator.mm b/ios/chrome/browser/ui/background_generator.mm
index d21b44da54114be93c19e45c8ab642c44366e5b5..517ef42528893c92b4e17efd0ef4da130521bcb3 100644
--- a/ios/chrome/browser/ui/background_generator.mm
+++ b/ios/chrome/browser/ui/background_generator.mm
@@ -11,6 +11,7 @@
#include "base/mac/foundation_util.h"
#include "base/mac/scoped_cftyperef.h"
#import "ios/chrome/browser/ui/ui_util.h"
+#import "ios/third_party/material_components_ios/src/components/Palettes/src/MaterialPalettes.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
@@ -51,10 +52,5 @@ UIImage* GetRadialGradient(CGRect backgroundRect,
}
void InstallBackgroundInView(UIView* view) {
- UIImageView* imageView = [[UIImageView alloc] initWithFrame:view.bounds];
- imageView.image = [UIImage imageNamed:@"stack_view_background_noise.jpg"];
- imageView.contentMode = UIViewContentModeScaleAspectFill;
- imageView.autoresizingMask =
- UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
- [view insertSubview:imageView atIndex:0];
+ [view setBackgroundColor:[[MDCPalette greyPalette] tint900]];
}
« no previous file with comments | « no previous file | ios/chrome/browser/ui/stack_view/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698