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

Unified Diff: ash/system/tray/system_tray.cc

Issue 10825146: Fix the volume and brightness bubble color issue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray.cc
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
index 8bd3062dfbe20ed9926e25488e64ee8e77bf9d62..d70727663590a55f6bbc90df1ca170a5f821fa37 100644
--- a/ash/system/tray/system_tray.cc
+++ b/ash/system/tray/system_tray.cc
@@ -417,8 +417,12 @@ void SystemTray::ShowItems(const std::vector<SystemTrayItem*>& items,
TrayBubbleView::InitParams init_params(TrayBubbleView::ANCHOR_TYPE_TRAY,
shelf_alignment());
init_params.can_activate = can_activate;
- if (detailed)
+ if (detailed) {
+ // This is the case where a volume control or brightness control bubble
+ // is created.
init_params.max_height = default_bubble_height_;
+ init_params.arrow_color = kBackgroundColor;
+ }
init_params.arrow_offset = arrow_offset;
bubble_->InitView(anchor, init_params, delegate->GetUserLoginStatus());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698