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

Unified Diff: ash/common/system/user/button_from_view.cc

Issue 2527513002: Update ash shelf/tray focus rects. (Closed)
Patch Set: rebase Created 4 years 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/system/tray/tray_popup_utils.cc ('k') | ui/gfx/canvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/user/button_from_view.cc
diff --git a/ash/common/system/user/button_from_view.cc b/ash/common/system/user/button_from_view.cc
index e46d3ee6870c0b8f8cc18d7d4fb6d8446c3a52aa..fd249d60a395eb4f52ab35c4dc1923f145ea07e4 100644
--- a/ash/common/system/user/button_from_view.cc
+++ b/ash/common/system/user/button_from_view.cc
@@ -89,11 +89,11 @@ void ButtonFromView::OnPaint(gfx::Canvas* canvas) {
View::OnPaint(canvas);
if (HasFocus()) {
gfx::RectF rect(GetLocalBounds());
- if (MaterialDesignController::IsSystemTrayMenuMaterial())
- rect.Inset(gfx::InsetsF(0.5f));
- else
+ bool use_md = MaterialDesignController::IsSystemTrayMenuMaterial();
+ if (!use_md)
rect.Inset(gfx::InsetsF(tab_frame_inset_));
- canvas->DrawSolidFocusRect(rect, kFocusBorderColor);
+ canvas->DrawSolidFocusRect(rect, kFocusBorderColor,
+ use_md ? kFocusBorderThickness : 1);
}
}
« no previous file with comments | « ash/common/system/tray/tray_popup_utils.cc ('k') | ui/gfx/canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698