Fix background color to ensure notification text color is preserved.

Since the text color changed, its backround color has to change also
otherwise Label's GetReadableColor() will use a computed text color
instead of the specified one.

BUG=230068

Review URL: https://codereview.chromium.org/14298015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195403 0039d316-1c4b-4281-b951-d872f2087c98
parent b7886152
......@@ -60,10 +60,10 @@ const size_t kMessageCharacterLimit =
// Notification colors. The text background colors below are used only to keep
// view::Label from modifying the text color and will not actually be drawn.
// See view::Label's SetEnabledColor() and SetBackgroundColor() for details.
// See view::Label's RecalculateColors() for details.
const SkColor kRegularTextBackgroundColor = SK_ColorWHITE;
const SkColor kDimTextColor = SkColorSetRGB(102, 102, 102);
const SkColor kDimTextBackgroundColor = SK_ColorBLACK;
const SkColor kDimTextBackgroundColor = SK_ColorWHITE;
const SkColor kButtonSeparatorColor = SkColorSetRGB(234, 234, 234);
const SkColor kHoveredButtonBackgroundColor = SkColorSetRGB(243, 243, 243);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment