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

Unified Diff: ios/chrome/browser/ui/infobars/infobar_view.mm

Issue 2659613002: Prevent infobar buttons title color from changing when disabled (Closed)
Patch Set: Created 3 years, 11 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/browser/ui/infobars/infobar_view.mm
diff --git a/ios/chrome/browser/ui/infobars/infobar_view.mm b/ios/chrome/browser/ui/infobars/infobar_view.mm
index 1e588e71302a66fbd63f55a19a7c46d7858e829b..a0a79f6b8e004623c8fca5ae463dd605754cadd1 100644
--- a/ios/chrome/browser/ui/infobars/infobar_view.mm
+++ b/ios/chrome/browser/ui/infobars/infobar_view.mm
@@ -876,8 +876,10 @@ enum InfoBarButtonPosition { ON_FIRST_LINE, CENTER, LEFT, RIGHT };
forState:UIControlStateDisabled];
if (palette)
button.get().hasOpaqueBackground = YES;
- if (customTitleColor)
+ if (customTitleColor) {
+ button.get().tintAdjustmentMode = UIViewTintAdjustmentModeNormal;
button.get().customTitleColor = customTitleColor;
+ }
button.get().titleLabel.adjustsFontSizeToFitWidth = YES;
button.get().titleLabel.minimumScaleFactor = 0.6f;
[button setTitle:message forState:UIControlStateNormal];
« 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