Commit b91dafdd authored by skuhne@chromium.org's avatar skuhne@chromium.org

Changing the ominbar text colors according to spec. This change was marked as 'optional' and

therefore not included in the first CL


BUG=115861
TEST=Visually checked


Review URL: http://codereview.chromium.org/9582039

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124946 0039d316-1c4b-4281-b951-d872f2087c98
parent 18aa8bea
......@@ -147,12 +147,8 @@ SkColor AutocompleteResultView::GetColor(ResultViewState state,
const gfx::NativeTheme* theme = gfx::NativeTheme::instance();
colors[SELECTED][BACKGROUND] = theme->GetSystemColor(
gfx::NativeTheme::kColorId_TextfieldSelectionBackgroundFocused);
colors[SELECTED][TEXT] = theme->GetSystemColor(
gfx::NativeTheme::kColorId_TextfieldSelectionColor);
colors[NORMAL][BACKGROUND] = theme->GetSystemColor(
gfx::NativeTheme::kColorId_TextfieldDefaultBackground);
colors[NORMAL][TEXT] = theme->GetSystemColor(
gfx::NativeTheme::kColorId_TextfieldDefaultColor);
colors[NORMAL][URL] = SkColorSetARGB(0xff, 0x00, 0x99, 0x33);
colors[SELECTED][URL] = SkColorSetARGB(0xff, 0x00, 0x66, 0x22);
colors[HOVERED][URL] = SkColorSetARGB(0xff, 0x00, 0x66, 0x22);
......@@ -176,9 +172,14 @@ SkColor AutocompleteResultView::GetColor(ResultViewState state,
colors[NORMAL][BACKGROUND], 64);
colors[HOVERED][TEXT] = colors[NORMAL][TEXT];
for (int i = 0; i < NUM_STATES; ++i) {
#if defined(USE_AURA)
colors[i][TEXT] =
color_utils::AlphaBlend(SK_ColorBLACK, colors[i][BACKGROUND], 0xdd);
colors[i][DIMMED_TEXT] =
color_utils::AlphaBlend(SK_ColorBLACK, colors[i][BACKGROUND], 0xbb);
#else
colors[i][DIMMED_TEXT] =
color_utils::AlphaBlend(colors[i][TEXT], colors[i][BACKGROUND], 128);
#if !defined(USE_AURA)
colors[i][URL] = color_utils::GetReadableColor(SkColorSetRGB(0, 128, 0),
colors[i][BACKGROUND]);
#endif
......
......@@ -36,10 +36,12 @@ const SkColor kFocusedMenuItemBackgroundColor = SkColorSetRGB(0xF1, 0xF1, 0xF1);
// Textfield:
const SkColor kTextfieldDefaultColor = SK_ColorBLACK;
const SkColor kTextfieldDefaultBackground = SK_ColorWHITE;
const SkColor kTextfieldSelectionColor = SK_ColorWHITE;
const SkColor kTextfieldSelectionBackgroundFocused =
SkColorSetARGB(0x54, 0x4D, 0x90, 0xFE);
const SkColor kTextfieldSelectionBackgroundUnfocused = SK_ColorLTGRAY;
const SkColor kTextfieldSelectionColor =
color_utils::AlphaBlend(SK_ColorBLACK,
kTextfieldSelectionBackgroundFocused, 0xdd);
} // namespace
......
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