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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc

Issue 795353003: views: Cleanup some things in DetachableToolbarView class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « no previous file | chrome/browser/ui/views/detachable_toolbar_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
index c631e6b9e86a220f5a089e0fdddbbd0ee408df47..e1c5bc0d0200636cc4b0c85343cb6034af9c68d0 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -106,6 +106,12 @@ static const int kNewTabHorizontalPadding = 2;
// Maximum size of buttons on the bookmark bar.
static const int kMaxButtonWidth = 150;
+// The color gradient start value close to the edge of the divider.
+static const SkColor kEdgeDividerColor = SkColorSetRGB(222, 234, 248);
+
+// The color gradient value for the middle of the divider.
+static const SkColor kMiddleDividerColor = SkColorSetRGB(194, 205, 212);
+
// Number of pixels the attached bookmark bar overlaps with the toolbar.
static const int kToolbarAttachedBookmarkBarOverlap = 3;
@@ -421,9 +427,12 @@ class BookmarkBarView::ButtonSeparatorView : public views::View {
void OnPaint(gfx::Canvas* canvas) override {
DetachableToolbarView::PaintVerticalDivider(
- canvas, kSeparatorStartX, height(), 1,
- DetachableToolbarView::kEdgeDividerColor,
- DetachableToolbarView::kMiddleDividerColor,
+ canvas,
+ kSeparatorStartX,
+ height(),
+ 1,
+ kEdgeDividerColor,
+ kMiddleDividerColor,
GetThemeProvider()->GetColor(ThemeProperties::COLOR_TOOLBAR));
}
« no previous file with comments | « no previous file | chrome/browser/ui/views/detachable_toolbar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698