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

Unified Diff: ios/chrome/share_extension/share_extension_view.mm

Issue 2701743004: Set "Cancel" button blue in iOS Share extension (Closed)
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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/share_extension/share_extension_view.mm
diff --git a/ios/chrome/share_extension/share_extension_view.mm b/ios/chrome/share_extension/share_extension_view.mm
index a0725743a9cd4c3e98f1fac832c3a78096b302a7..3a0e14619c53d4833407cc2e067c6285c75351f6 100644
--- a/ios/chrome/share_extension/share_extension_view.mm
+++ b/ios/chrome/share_extension/share_extension_view.mm
@@ -309,10 +309,13 @@ const CGFloat kButtonFontSize = 17;
[navigationBar setTranslucent:YES];
[navigationBar setTranslatesAutoresizingMaskIntoConstraints:NO];
+ UIButton* systemButton = [UIButton buttonWithType:UIButtonTypeSystem];
+ UIColor* systemColor = [systemButton titleColorForState:UIControlStateNormal];
UIBarButtonItem* cancelButton = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemCancel
target:self
action:@selector(cancelPressed:)];
+ [cancelButton setTintColor:systemColor];
NSString* appName =
[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698