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

Unified Diff: ash/system/tray_accessibility.cc

Issue 2816193002: Introduce a type of View background that stays in sync with its host (Closed)
Patch Set: . 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: ash/system/tray_accessibility.cc
diff --git a/ash/system/tray_accessibility.cc b/ash/system/tray_accessibility.cc
index 3d042c2f7fa4aea67d472200aa7e294df7dbea19..c2c6215dc7410a845ce4fafe24c543aee81ec7d4 100644
--- a/ash/system/tray_accessibility.cc
+++ b/ash/system/tray_accessibility.cc
@@ -130,7 +130,8 @@ AccessibilityPopupView::AccessibilityPopupView(uint32_t enabled_state_bits)
: label_(CreateLabel(enabled_state_bits)) {}
void AccessibilityPopupView::Init() {
- set_background(views::Background::CreateSolidBackground(kBackgroundColor));
+ set_background(views::Background::CreateThemedSolidBackground(
+ this, ui::NativeTheme::kColorId_BubbleBackground));
views::GridLayout* layout = new views::GridLayout(this);
SetLayoutManager(layout);

Powered by Google App Engine
This is Rietveld 408576698