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

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

Issue 2527513002: Update ash shelf/tray focus rects. (Closed)
Patch Set: don't fix palette Created 4 years, 1 month 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 bf363e4fff94f58e494695faafb8c66674683c50..5aad501af4ce7feef60eec7ae86676e2d279ab9a 100644
--- a/ash/common/system/tray/tray_background_view.cc
+++ b/ash/common/system/tray/tray_background_view.cc
@@ -573,9 +573,10 @@ gfx::Rect TrayBackgroundView::GetFocusBounds() {
}
void TrayBackgroundView::OnPaintFocus(gfx::Canvas* canvas) {
- gfx::Rect paint_bounds(GetFocusBounds());
- paint_bounds.Inset(2, -2, 3, -2);
- canvas->DrawSolidFocusRect(paint_bounds, kFocusBorderColor);
+ gfx::RectF paint_bounds(GetFocusBounds());
+ paint_bounds.Inset(gfx::Insets(2, -2));
+ canvas->DrawSolidFocusRect(paint_bounds, kFocusBorderColor,
+ kFocusBorderThickness);
}
void TrayBackgroundView::OnPaint(gfx::Canvas* canvas) {

Powered by Google App Engine
This is Rietveld 408576698