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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 2255313004: Fix the toolbar bottom border being 2 pixels w/ a detached bookmark bar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 4 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: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index e0896b097faf8f623e0ab52116a4fa38167c3103..454ec463d979a20ad3d2390a1a2251b227e6face 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -237,15 +237,9 @@ void PaintDetachedBookmarkBar(gfx::Canvas* canvas,
SkColor separator_color =
tp->GetColor(ThemeProperties::COLOR_DETACHED_BOOKMARK_BAR_SEPARATOR);
- if (ui::MaterialDesignController::IsModeMaterial()) {
- BrowserView::Paint1pxHorizontalLine(
- canvas, separator_color,
- gfx::Rect(0, 0, view->width(),
- views::NonClientFrameView::kClientEdgeThickness),
- true);
- } else {
+ // In material mode the toolbar bottom stroke serves as our top stroke.
+ if (!ui::MaterialDesignController::IsModeMaterial())
PaintHorizontalBorder(canvas, view, true, separator_color);
- }
// For the bottom separator, increase the luminance. Either double it or halve
// the distance to 1.0, whichever is less of a difference.
« 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