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

Unified Diff: ash/common/shelf/shelf_view.cc

Issue 2679133003: [ash-md] Wired in the Shelf color to be derived from the Wallpaper. (Closed)
Patch Set: Addressed nits. Created 3 years, 10 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 | « ash/common/shelf/shelf_view.h ('k') | ash/common/shelf/shelf_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_view.cc
diff --git a/ash/common/shelf/shelf_view.cc b/ash/common/shelf/shelf_view.cc
index 65c6941072d06dfbf69652b98d8070a1ac9aafbb..9dfc0531bb82d854f0c3055deb6ed5333376a75c 100644
--- a/ash/common/shelf/shelf_view.cc
+++ b/ash/common/shelf/shelf_view.cc
@@ -754,9 +754,9 @@ void ShelfView::LayoutToIdealBounds() {
overflow_button_->SetBoundsRect(ideal_bounds.overflow_bounds);
}
-void ShelfView::UpdateShelfItemBackground(int alpha) {
- GetAppListButton()->SetBackgroundAlpha(alpha);
- overflow_button_->SetBackgroundAlpha(alpha);
+void ShelfView::UpdateShelfItemBackground(SkColor color) {
+ GetAppListButton()->UpdateShelfItemBackground(color);
+ overflow_button_->UpdateShelfItemBackground(color);
}
void ShelfView::UpdateAllButtonsVisibilityInOverflowMode() {
« no previous file with comments | « ash/common/shelf/shelf_view.h ('k') | ash/common/shelf/shelf_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698