Commit 5ffaa36e authored by erg@chromium.org's avatar erg@chromium.org

linux_aura: Ask the NativeTheme for various colors which were hardcoded.

This makes text in the omnibox dropdown visible again on linux_aura.

BUG=130810


Review URL: https://chromiumcodereview.appspot.com/13722014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192690 0039d316-1c4b-4281-b951-d872f2087c98
parent 54e1865a
......@@ -159,11 +159,15 @@ SkColor OmniboxResultView::GetColor(
static bool initialized = false;
static SkColor colors[NUM_STATES][NUM_KINDS];
if (!initialized) {
colors[SELECTED][BACKGROUND] = theme->GetSystemColor(
ui::NativeTheme::kColorId_TextfieldSelectionBackgroundFocused);
colors[NORMAL][BACKGROUND] = theme->GetSystemColor(
ui::NativeTheme::kColorId_TextfieldDefaultBackground);
colors[NORMAL][TEXT] = theme->GetSystemColor(
ui::NativeTheme::kColorId_TextfieldDefaultColor);
colors[NORMAL][URL] = SkColorSetARGB(0xff, 0x00, 0x99, 0x33);
colors[SELECTED][BACKGROUND] = theme->GetSystemColor(
ui::NativeTheme::kColorId_TextfieldSelectionBackgroundFocused);
colors[SELECTED][TEXT] = theme->GetSystemColor(
ui::NativeTheme::kColorId_TextfieldSelectionColor);
colors[SELECTED][URL] = SkColorSetARGB(0xff, 0x00, 0x66, 0x22);
colors[HOVERED][URL] = SkColorSetARGB(0xff, 0x00, 0x66, 0x22);
CommonInitColors(theme, colors);
......
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