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

Unified Diff: ash/common/system/tray/tray_background_view.cc

Issue 2675983003: views::Separator cleanup. (Closed)
Patch Set: 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
Index: ash/common/system/tray/tray_background_view.cc
diff --git a/ash/common/system/tray/tray_background_view.cc b/ash/common/system/tray/tray_background_view.cc
index e5aef5a48faa937c5f314537e99c548adb4dc0aa..074a94b64fa040f42c7ef1b6c8992e99e195a4d2 100644
--- a/ash/common/system/tray/tray_background_view.cc
+++ b/ash/common/system/tray/tray_background_view.cc
@@ -586,10 +586,10 @@ void TrayBackgroundView::OnPaint(gfx::Canvas* canvas) {
!separator_visible_) {
return;
}
- // In the given |canvas|, for a horizontal shelf draw a separator line to the
- // right or left of the TrayBackgroundView when the system is LTR or RTL
- // aligned, respectively. For a vertical shelf draw the separator line
- // underneath the items instead.
+ // In the given |canvas|, for a horizontal shelf draw a separator line to the
+ // right or left of the TrayBackgroundView when the system is LTR or RTL
+ // aligned, respectively. For a vertical shelf draw the separator line
+ // underneath the items instead.
const bool horizontal_shelf = IsHorizontalAlignment(shelf_alignment_);
const gfx::Rect local_bounds = GetLocalBounds();
const int height = kTrayItemSize;
@@ -601,7 +601,7 @@ void TrayBackgroundView::OnPaint(gfx::Canvas* canvas) {
gfx::ScopedCanvas scoped_canvas(canvas);
const float scale = canvas->UndoDeviceScaleFactor();
cc::PaintFlags paint;
- paint.setColor(kSeparatorColor);
+ paint.setColor(kTraySeparatorColor);
paint.setAntiAlias(true);
const gfx::Rect bounds = horizontal_shelf

Powered by Google App Engine
This is Rietveld 408576698