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

Unified Diff: chrome/browser/ui/layout_constants.cc

Issue 1541313002: Material Hybrid mode for tabstrip. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new_layout_constants
Patch Set: Created 5 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/tabs/tab.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/layout_constants.cc
diff --git a/chrome/browser/ui/layout_constants.cc b/chrome/browser/ui/layout_constants.cc
index cccaeb489097d7a95816bbdd423cee063c88fc37..1aac65dd5eb3cf761ce3ac6b9a00b65a7e339383 100644
--- a/chrome/browser/ui/layout_constants.cc
+++ b/chrome/browser/ui/layout_constants.cc
@@ -21,15 +21,15 @@ int GetLayoutConstant(LayoutConstant constant) {
const int kOmniboxFontPixelSize[] = {16, 14, 14};
const int kTabCloseButtonTrailingPaddingOverlap[] = {2, 0, 0};
const int kTabFaviconTitleSpacing[] = {4, 6, 6};
- const int kTabHeight[] = {29, 29, 29};
+ const int kTabHeight[] = {29, 29, 33};
const int kTabPinnedContentWidth[] = {25, 23, 23};
#if defined(OS_MACOSX)
const int kTabTopExclusionHeight[] = {0, 0, 0};
- const int kTabstripNewTabButtonOverlap[] = {8, 5, 5};
+ const int kTabstripNewTabButtonOverlap[] = {8, 5, 6};
const int kTabstripTabOverlap[] = {19, 16, 16};
#else
const int kTabTopExclusionHeight[] = {2, 0, 0};
- const int kTabstripNewTabButtonOverlap[] = {11, 5, 5};
+ const int kTabstripNewTabButtonOverlap[] = {11, 5, 6};
const int kTabstripTabOverlap[] = {26, 16, 16};
#endif
const int kTabstripToolbarOverlap[] = {3, 0, 0};
@@ -102,8 +102,8 @@ gfx::Insets GetLayoutInsets(LayoutInset inset) {
const int kOmniboxDropdownPadding[] = {3, 4, 4};
const int kOmniboxDropdownTextPadding[] = {3, 3, 3};
const int kTabBottomPadding[] = {2, 1, 1};
- const int kTabLeftPadding[] = {20, 16, 16};
- const int kTabRightPadding[] = {20, 16, 16};
+ const int kTabLeftPadding[] = {20, 16, 18};
+ const int kTabRightPadding[] = {20, 16, 18};
const int kTabTopPadding[] = {4, 1, 1};
const int kToolbarBottomPadding[] = {5, 5, 5};
const int kToolbarButtonPadding[] = {2, 6, 6};
@@ -145,8 +145,8 @@ gfx::Insets GetLayoutInsets(LayoutInset inset) {
}
gfx::Size GetLayoutSize(LayoutSize size) {
- const int kNewTabButtonWidth[] = {34, 36, 36};
- const int kNewTabButtonHeight[] = {18, 18, 18};
+ const int kNewTabButtonWidth[] = {34, 36, 39};
+ const int kNewTabButtonHeight[] = {18, 18, 21};
const int mode = ui::MaterialDesignController::GetMode();
switch (size) {
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698