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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 2816193002: Introduce a type of View background that stays in sync with its host (Closed)
Patch Set: tdanderson review + rebase Created 3 years, 8 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/views/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index 5536a492e6f6f98592530eaa5fab5081a90c4c40..a068aeeec937ba93f5ec0276cdc6dfb6821aa022 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -199,8 +199,9 @@ void LocationBarView::Init() {
ime_inline_autocomplete_view_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
ime_inline_autocomplete_view_->SetAutoColorReadabilityEnabled(false);
ime_inline_autocomplete_view_->set_background(
- views::Background::CreateSolidBackground(GetNativeTheme()->GetSystemColor(
- ui::NativeTheme::kColorId_TextfieldSelectionBackgroundFocused)));
+ views::Background::CreateThemedSolidBackground(
+ ime_inline_autocomplete_view_,
+ ui::NativeTheme::kColorId_TextfieldSelectionBackgroundFocused));
ime_inline_autocomplete_view_->SetEnabledColor(
msw 2017/04/19 19:00:54 This label's foreground color doesn't change with
Evan Stade 2017/04/20 04:44:22 I didn't really intend to fix all native theming i
msw 2017/04/20 18:21:45 I just think this isn't as simple as it seems; "fi
Evan Stade 2017/04/20 21:18:45 It's also quite possible that bugs go the other di
GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_TextfieldSelectionColor));

Powered by Google App Engine
This is Rietveld 408576698