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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.mm

Issue 107623002: Use the NativeTheme to create the text color for text during the generated card animation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed mac to use the GRAY constant that was previously set in the autofill_dialog_controller_impl. Created 6 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
Index: chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.mm b/chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.mm
index 8cff21868013d6e3e1b1722ff45ab43d3e68b7c6..633f596ab32374d35cba4b72977854fd5cec41cb 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.mm
@@ -11,6 +11,7 @@
#include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h"
#include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h"
#include "skia/ext/skia_utils_mac.h"
+#include "third_party/skia/include/core/SkColor.h"
namespace {
@@ -95,7 +96,7 @@ SkColor kSubtleBorderColor = 0xffdfdfdf;
// We probably want to look at other multi-line messages somewhere.
[label_ setFont:message.font.GetNativeFont()];
[label_ setStringValue:base::SysUTF16ToNSString(message.text)];
- [label_ setTextColor:gfx::SkColorToCalibratedNSColor(message.text_color)];
+ [label_ setTextColor:gfx::SkColorToCalibratedNSColor(SK_ColorDKGRAY)];
groby-ooo-7-16 2014/01/08 18:44:53 If we don't use hand-tuned colors any more, I sugg
Sheridan Rawlins 2014/01/08 23:58:41 Done.
// Resize only height, preserve width. This guarantees text stays centered in
// the dialog.
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_types.h ('k') | chrome/browser/ui/views/autofill/autofill_dialog_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698